Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for fullBuffer (0.56 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

                byte[] emptyBuffer = new byte[100];
                byte[] fullBuffer = new byte[100];
                for (int i = 0; i < fullBuffer.length; i++) {
                    fullBuffer[i] = (byte) i;
                }
    
                assertEquals(0, echoRequest.readBytesWireFormat(emptyBuffer, 0));
                assertEquals(0, echoRequest.readBytesWireFormat(fullBuffer, 50));
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            void testReadDataWireFormatWithOffset() {
                byte[] fullBuffer = new byte[200];
                byte[] dfsData = createValidDfsReferralBuffer();
                int offset = 50;
                System.arraycopy(dfsData, 0, fullBuffer, offset, dfsData.length);
    
                int bytesRead = response.readDataWireFormat(fullBuffer, offset, dfsData.length);
    
                assertTrue(bytesRead > 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/MockHttp2Peer.kt

        require(length < bytesOut.size - lastFrame.start)
    
        // Move everything from bytesOut into a new buffer.
        val fullBuffer = Buffer()
        bytesOut.read(fullBuffer, bytesOut.size)
    
        // Copy back all but what we're truncating.
        fullBuffer.read(bytesOut, lastFrame.start + length)
        outFrames.add(OutFrame(lastFrame.sequence, lastFrame.start, true))
        return writer
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

            int startIndex = 10;
    
            // Prepare buffer with offset
            byte[] fullBuffer = new byte[buffer.length + startIndex];
            System.arraycopy(buffer, 0, fullBuffer, startIndex, buffer.length);
    
            setErrorCode(response, 0);
    
            int bytesRead = response.readDataWireFormat(fullBuffer, startIndex, buffer.length);
    
            // Verify the method returns the correct number of bytes read
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            // Various buffer contents
            byte[] emptyBuffer = new byte[256];
            byte[] fullBuffer = createTestData(256);
    
            // When
            int emptyRead = request.readBytesWireFormat(emptyBuffer, 0);
            int fullRead = request.readBytesWireFormat(fullBuffer, 50);
    
            // Then - always returns 0 as this is a request, not response
            assertEquals(0, emptyRead);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

            // Given - Various invalid buffers
            byte[] nullBuffer = null;
            byte[] wrongSizeBuffer = new byte[100]; // Wrong size
            byte[] correctBuffer = new byte[SmbComTransaction.TRANSACTION_BUF_SIZE];
    
            // When/Then - Should handle invalid buffers gracefully
            assertDoesNotThrow(() -> {
                BufferCache.releaseBuffer(nullBuffer); // Should ignore null
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  7. src/bufio/bufio.go

    		}
    		if e != ErrBufferFull { // unexpected error
    			err = e
    			break
    		}
    
    		// Make a copy of the buffer.
    		buf := bytes.Clone(frag)
    		fullBuffers = append(fullBuffers, buf)
    		totalLen += len(buf)
    	}
    
    	totalLen += len(frag)
    	return fullBuffers, frag, totalLen, err
    }
    
    // ReadBytes reads until the first occurrence of delim in the input,
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 22K bytes
    - Viewed (0)
Back to top