Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for startIndex (0.16 sec)

  1. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

                // When
                int bytesWritten = chunk.encode(buffer, startIndex);
    
                // Then
                assertEquals(EXPECTED_SIZE, bytesWritten);
                assertEquals(0L, SMBUtil.readInt8(buffer, startIndex));
                assertEquals(0L, SMBUtil.readInt8(buffer, startIndex + 8));
                assertEquals(0, SMBUtil.readInt4(buffer, startIndex + 16));
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

            byte[] buffer = new byte[100];
            int startIndex = 10;
            buffer[startIndex] = 1; // replaceIfExists = true
            SMBUtil.writeInt4(nameBytes.length, buffer, startIndex + 16);
            System.arraycopy(nameBytes, 0, buffer, startIndex + 20, nameBytes.length);
    
            FileRenameInformation2 info = new FileRenameInformation2();
            int bytesRead = info.decode(buffer, startIndex, buffer.length - startIndex);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                // When
                int bytesWritten = copy.encode(buffer, startIndex);
    
                // Then
                assertEquals(HEADER_SIZE + (3 * CHUNK_SIZE), bytesWritten);
    
                // Verify chunk count
                assertEquals(3, SMBUtil.readInt4(buffer, startIndex + SOURCE_KEY_SIZE));
    
                // Verify first chunk
                int chunkStart = startIndex + HEADER_SIZE;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            byte[] buffer = new byte[100];
            int startIndex = 5;
            original.encode(buffer, startIndex);
    
            // Now decode into a new instance
            int bytesRead = fileBasicInfo.decode(buffer, startIndex, 36);
    
            // Verify bytes read
            assertEquals(36, bytesRead);
    
            // Verify decoded values match original
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java

            for (int i = 0; i < dst.length; i++) {
                dst[i] = (byte) (i & 0xFF);
            }
    
            int startIndex = 5;
            int bytesWritten = querySecurityDesc.writeParametersWireFormat(dst, startIndex);
    
            // Check that bytes before startIndex are unchanged
            for (int i = 0; i < startIndex; i++) {
                assertEquals((byte) (i & 0xFF), dst[i]);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java

            for (int i = 0; i < dst.length; i++) {
                dst[i] = (byte) (i & 0xFF);
            }
    
            int startIndex = 5;
            int bytesWritten = notifyChange.writeSetupWireFormat(dst, startIndex);
    
            // Check that bytes before startIndex are unchanged
            for (int i = 0; i < startIndex; i++) {
                assertEquals((byte) (i & 0xFF), dst[i]);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

                byte[] buffer = new byte[100];
                int startIndex = 10;
    
                int bytesWritten = echoRequest.writeBytesWireFormat(buffer, startIndex);
    
                // Should write 4 bytes
                assertEquals(4, bytesWritten);
    
                // Should write structure size of 4
                assertEquals(4, SMBUtil.readInt2(buffer, startIndex));
            }
    
            @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)
  8. 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);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

            NdrShort ns = new NdrShort(0xABCD); // value & 0xFF => 0xCD
            buf.reset();
            int startIndex = buf.getIndex();
            ns.encode(buf);
    
            // Find where the actual data starts (after alignment)
            int alignmentBytes = 0;
            if (startIndex % 2 != 0) {
                alignmentBytes = 1; // Need 1 byte of padding for 2-byte alignment
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                Arrays.fill(buffer, (byte) 0);
    
                int startIndex = 100;
                request.writeBytesWireFormat(buffer, startIndex);
    
                // Verify data is at correct position
                for (int i = 0; i < data.length; i++) {
                    assertEquals((byte) 0xAB, buffer[startIndex + 48 + i]);
                }
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
Back to top