Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 491 for Offset (0.34 sec)

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

                // When
                int offset1 = chunk1.encode(buffer, 0);
                int offset2 = chunk2.encode(buffer, offset1);
                int offset3 = chunk3.encode(buffer, offset1 + offset2);
    
                // Then
                assertEquals(EXPECTED_SIZE, offset1);
                assertEquals(EXPECTED_SIZE, offset2);
                assertEquals(EXPECTED_SIZE, offset3);
    
                // Verify first chunk
    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/smb2/notify/Smb2ChangeNotifyResponseTest.java

            byte[] buffer = new byte[512];
            int offset = 0;
    
            // Set header start position for the response
            setHeaderStart(response, 64);
    
            // Write structure header (9 bytes)
            SMBUtil.writeInt2(9, buffer, offset); // Structure size
            SMBUtil.writeInt2(80 - 64, buffer, offset + 2); // Buffer offset (relative to header)
            SMBUtil.writeInt4(50, buffer, offset + 4); // Total length of notification data
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

            SMBUtil.writeInt2(shareType, buffer, bufferIndex);
            bufferIndex += 2;
    
            // Write remark offset (4 bytes)
            int remarkOffset = shareNameSize + typeSize + offsetSize;
            SMBUtil.writeInt4(remarkOffset, buffer, bufferIndex);
            bufferIndex += 4;
    
            // Write remark at the calculated offset
            byte[] remarkBytes = remark.getBytes(StandardCharsets.US_ASCII);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            }
        }
    
        @Test
        @DisplayName("Should write bytes at different buffer offsets")
        void testWriteBytesAtDifferentOffsets() throws Exception {
            // Test at different offsets
            int[] offsets = { 0, 10, 50, 100, 200 };
    
            for (int offset : offsets) {
                // Given
                byte[] buffer = new byte[1024];
                Smb2SessionSetupRequest req =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            SMBUtil.writeInt2(0x8004, buffer, 22); // Control flags
            SMBUtil.writeInt4(0, buffer, 24); // Owner offset
            SMBUtil.writeInt4(0, buffer, 28); // Group offset
            SMBUtil.writeInt4(0, buffer, 32); // SACL offset
            SMBUtil.writeInt4(0, buffer, 36); // DACL offset
    
            int result = response.readBytesWireFormat(buffer, bufferIndex);
    
            assertNotNull(response.getInfo());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseContext.java

        public int encode(byte[] buffer, int offset) {
            int start = offset;
    
            // Write context header
            SMBUtil.writeInt4(0, buffer, offset); // Next (offset to next context, 0 for last)
            offset += 4;
    
            SMBUtil.writeInt2(16, buffer, offset); // NameOffset (from start of context)
            offset += 2;
    
            SMBUtil.writeInt2(4, buffer, offset); // NameLength
            offset += 2;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  7. src/archive/tar/writer_test.go

    						Name:     "gnu-sparse",
    						Size:     6e10,
    						SparseHoles: []sparseEntry{
    							{Offset: 0e10, Length: 1e10 - 100},
    							{Offset: 1e10, Length: 1e10 - 100},
    							{Offset: 2e10, Length: 1e10 - 100},
    							{Offset: 3e10, Length: 1e10 - 100},
    							{Offset: 4e10, Length: 1e10 - 100},
    							{Offset: 5e10, Length: 1e10 - 100},
    						},
    					}, nil},
    					testReadFrom{fileOps{
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Feb 03 16:38:43 UTC 2025
    - 39.8K bytes
    - Viewed (0)
  8. docs/smb3-features/03-multi-channel-design.md

        private void encodeSockaddr(byte[] buffer, int offset) {
            if (ipv6) {
                // IPv6 sockaddr_in6 structure
                writeInt2(buffer, offset, 23);  // AF_INET6
                writeInt2(buffer, offset + 2, 445);  // Port
                writeInt4(buffer, offset + 4, 0);  // Flow info
                System.arraycopy(address.getAddress(), 0, buffer, offset + 8, 16);
                writeInt4(buffer, offset + 24, 0);  // Scope ID
            } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java

        @DisplayName("writeAndXWireFormat without andx writes 0xFF and sentinel offset")
        void testWriteAndXWireFormatWithoutAndx() {
            DummyAndXBlock block = new DummyAndXBlock();
            byte[] buf = new byte[128];
            int n = block.writeAndXWireFormat(buf, 0);
    
            assertTrue(n > 0);
            // Common AndX header: command at +1, reserved at +2, offset at +3/+4
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java

                assertEquals(expected[i], dst[offset + i], () -> "byte index " + idx);
            }
            // The region before offset and after the payload must remain untouched.
            for (int i = 0; i < offset; i++) {
                final int idx = i;
                assertEquals(0, dst[i], () -> "pre-offset byte " + idx + " modified");
            }
            for (int i = offset + 8; i < dst.length; i++) {
                final int idx = i;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top