Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 906 for buffer2 (0.04 sec)

  1. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            // Test multiple calls to readDataWireFormat to ensure buffer is overwritten
            byte[] firstData = "First data set".getBytes();
            byte[] secondData = "Second data set".getBytes();
            byte[] buffer1 = new byte[100];
            byte[] buffer2 = new byte[100];
    
            System.arraycopy(firstData, 0, buffer1, 0, firstData.length);
            System.arraycopy(secondData, 0, buffer2, 0, secondData.length);
    
            // First read
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java

            @DisplayName("Should decode minimum buffer size")
            void testDecodeMinimumBufferSize() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[12]; // Exact size needed
                SMBUtil.writeInt4(3, buffer, 0);
                SMBUtil.writeInt4(4096, buffer, 4);
                SMBUtil.writeInt4(12288, buffer, 8);
    
                int bytesDecoded = response.decode(buffer, 0, buffer.length);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

                byte[] buffer1 = new byte[1024];
                int bytesRead1 = stream1.read(buffer1);
                assertEquals(testContent, new String(buffer1, 0, bytesRead1, "UTF-8"));
            }
    
            // Second read - should work independently
            try (InputStream stream2 = cache.getInputStream()) {
                byte[] buffer2 = new byte[1024];
                int bytesRead2 = stream2.read(buffer2);
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java

                // When - second decode with different values
                ByteBuffer buffer2 = ByteBuffer.allocate(24);
                buffer2.order(ByteOrder.LITTLE_ENDIAN);
                buffer2.putLong(2000L);
                buffer2.putLong(1500L);
                buffer2.putInt(16);
                buffer2.putInt(1024);
    
                fileFsSizeInfo.decode(buffer2.array(), 0, 24);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

            byte[] buffer1 = new byte[100];
            byte[] buffer2 = new byte[100];
    
            int bytesWritten1 = info.encode(buffer1, 0);
            int bytesWritten2 = info.encode(buffer2, 0);
    
            assertEquals(bytesWritten1, bytesWritten2);
            assertArrayEquals(buffer1, buffer2);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

            // Given
            byte[] buffer1 = new byte[256];
            byte[] buffer2 = new byte[256];
    
            // Prepare both buffers with valid structure
            SMBUtil.writeInt2(4, buffer1, 0);
            SMBUtil.writeInt2(0, buffer1, 2);
            SMBUtil.writeInt2(4, buffer2, 10);
            SMBUtil.writeInt2(0, buffer2, 12);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                ByteBuffer buffer2 = ByteBuffer.allocate(32);
                buffer2.order(ByteOrder.LITTLE_ENDIAN);
                buffer2.putLong(2000L);
                buffer2.putLong(1500L);
                buffer2.putLong(1600L);
                buffer2.putInt(16);
                buffer2.putInt(1024);
    
                fileFsFullSizeInfo.decode(buffer2.array(), 0, 32);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java

            // Encode multiple times
            byte[] buffer1 = new byte[100];
            byte[] buffer2 = new byte[100];
            byte[] buffer3 = new byte[100];
    
            int encoded1 = request.encode(buffer1, 0);
            int encoded2 = request.encode(buffer2, 0);
            int encoded3 = request.encode(buffer3, 0);
    
            // All should produce same result
            assertEquals(encoded1, encoded2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                // Second read with different values
                byte[] buffer2 = new byte[60];
                SMBUtil.writeInt2(60, buffer2, 0);
                SMBUtil.writeInt2(2, buffer2, 2);
                SMBUtil.writeInt8(2000, buffer2, 40);
                SMBUtil.writeInt8(1500, buffer2, 48);
                SMBUtil.writeInt4(0x02, buffer2, 56);
    
                response.readBytesWireFormat(buffer2, 0);
    
                // Values should be updated
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java

        }
    
        @Test
        void testReadSetupWireFormat() {
            byte[] buffer = new byte[100];
            int result = response.readSetupWireFormat(buffer, 0, 100);
            assertEquals(0, result);
        }
    
        @Test
        void testReadParametersWireFormat() {
            byte[] buffer = new byte[100];
            int result = response.readParametersWireFormat(buffer, 0, 100);
            assertEquals(0, result);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
Back to top