Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for largeBuffer (0.75 sec)

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

                assertEquals(4, SMBUtil.readInt2(minBuffer, 0));
    
                // Large buffer
                byte[] largeBuffer = new byte[10000];
                written = echoRequest.writeBytesWireFormat(largeBuffer, 5000);
                assertEquals(4, written);
                assertEquals(4, SMBUtil.readInt2(largeBuffer, 5000));
            }
    
            @Test
            @DisplayName("Should maintain thread safety")
    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/smb2/ioctl/SrvCopychunkCopyTest.java

            void testEncodeAtDifferentPositions(int position) {
                // Given
                byte[] largeBuffer = new byte[500];
                SrvCopychunk chunk = new SrvCopychunk(12345, 67890, 99999);
                SrvCopychunkCopy copy = new SrvCopychunkCopy(sourceKey, chunk);
    
                // When
                int bytesWritten = copy.encode(largeBuffer, position);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                byte[] smallBuffer = new byte[100]; // Make buffer large enough
                byte[] largeBuffer = new byte[1000];
    
                // Act
                int smallEncodedSize = context.encode(smallBuffer, 0);
                int largeEncodedSize = context.encode(largeBuffer, 500);
    
                // Assert
                // encode() returns actual bytes written (6), not size() value (8)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

            void testLargeBufferDecoding() throws SMBProtocolDecodingException {
                byte[] largeBuffer = new byte[10000];
                FileFsSizeInformation info = new FileFsSizeInformation();
    
                long startTime = System.nanoTime();
                info.decode(largeBuffer, 0, 24);
                long endTime = System.nanoTime();
    
                // Should complete quickly (under 1ms)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
Back to top