Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 810 for buffer1 (0.21 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/fscc/FileFsSizeInformationTest.java

                // Given - first decode
                ByteBuffer buffer1 = ByteBuffer.allocate(24);
                buffer1.order(ByteOrder.LITTLE_ENDIAN);
                buffer1.putLong(1000L);
                buffer1.putLong(500L);
                buffer1.putInt(8);
                buffer1.putInt(512);
    
                fileFsSizeInfo.decode(buffer1.array(), 0, 24);
                long firstCapacity = fileFsSizeInfo.getCapacity();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                // Given - first decode
                ByteBuffer buffer1 = ByteBuffer.allocate(32);
                buffer1.order(ByteOrder.LITTLE_ENDIAN);
                buffer1.putLong(1000L);
                buffer1.putLong(500L);
                buffer1.putLong(500L);
                buffer1.putInt(8);
                buffer1.putInt(512);
    
                fileFsFullSizeInfo.decode(buffer1.array(), 0, 32);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  4. 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)
  5. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                // First read
                byte[] buffer1 = new byte[60];
                SMBUtil.writeInt2(60, buffer1, 0);
                SMBUtil.writeInt2(1, buffer1, 2);
                SMBUtil.writeInt8(1000, buffer1, 40);
                SMBUtil.writeInt8(500, buffer1, 48);
                SMBUtil.writeInt4(0x01, buffer1, 56);
    
                response.readBytesWireFormat(buffer1, 0);
    
                assertEquals(1, response.getCloseFlags());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  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/dcerpc/ndr/NdrShortTest.java

                NdrShort ndrShort = new NdrShort(50);
                NdrBuffer buffer1 = mock(NdrBuffer.class);
                NdrBuffer buffer2 = mock(NdrBuffer.class);
                when(buffer2.dec_ndr_short()).thenReturn(75);
    
                // When: Performing multiple operations
                ndrShort.encode(buffer1);
                ndrShort.decode(buffer2);
    
                // Then: Should handle both operations correctly
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K 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