Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 490 for offsetX (0.04 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

            int offset = 64; // Start at offset to test proper indexing
    
            int written = request.writeBytesWireFormat(buffer, offset);
    
            // Verify bytes written
            assertEquals(24, written);
    
            // Verify structure size (should be 24)
            assertEquals(24, SMBUtil.readInt2(buffer, offset));
    
            // Verify Reserved1 (2 bytes at offset+2, should be 0)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

            @DisplayName("Should handle buffer with offset correctly")
            void testReadWithBufferOffset() throws Exception {
                int offset = 10;
                byte[] buffer = new byte[64];
                byte[] fileId = createTestData(16);
                byte oplockLevel = 0x02;
    
                // Fill some random data before offset
                Arrays.fill(buffer, 0, offset, (byte) 0xAB);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/dfs/ReferralTest.java

                assertEquals(ttl, ref.getTtl());
            }
        }
    
        // Buffer Offset Tests
    
        @Test
        public void testDecodeFromNonZeroIndex() {
            int offset = 100;
            ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN);
    
            bb.position(offset);
            bb.putShort((short) 1);
            bb.putShort((short) 24);
            bb.putShort((short) 1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 22K bytes
    - Viewed (0)
  4. cmd/httprange.go

    // Case 2: bytes=1-10 (absolute start and end offsets) -> RangeSpec{false, 1, 10}
    // Case 3: bytes=10- (absolute start offset with end offset unspecified) -> RangeSpec{false, 10, -1}
    // Case 4: bytes=-30 (suffix length specification) -> RangeSpec{true, -30, -1}
    type HTTPRangeSpec struct {
    	// Does the range spec refer to a suffix of the object?
    	IsSuffixLength bool
    
    	// Start and end offset specified in range spec
    	Start, End int64
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java

            buffer[offset] = 0x01; // revision
            buffer[offset + 1] = 0x00; // padding
            SMBUtil.writeInt2(0x8004, buffer, offset + 2); // type
            SMBUtil.writeInt4(0, buffer, offset + 4); // owner offset
            SMBUtil.writeInt4(0, buffer, offset + 8); // group offset
            SMBUtil.writeInt4(0, buffer, offset + 12); // SACL offset
            SMBUtil.writeInt4(20, buffer, offset + 16); // DACL offset
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. doc/asm.html

    Adding an offset to the name refers to that offset from the symbol's address, so
    <code>foo+4(SB)</code> is four bytes past the start of <code>foo</code>.
    </p>
    
    <p>
    The <code>FP</code> pseudo-register is a virtual frame pointer
    used to refer to function arguments.
    The compilers maintain a virtual frame pointer and refer to the arguments on the stack as offsets from that pseudo-register.
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Nov 28 19:15:27 UTC 2023
    - 36.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

        /**
         * Test integer overflow protection in security buffer offset calculation.
         */
        @Test
        public void testSecurityBufferIntegerOverflow() {
            byte[] buffer = createBasicNegotiateResponseBuffer();
    
            // Set security buffer offset close to Integer.MAX_VALUE to test overflow protection
            SMBUtil.writeInt2(32767, buffer, 56); // Large offset (will be added to header start)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/util/SMBUtilTest.java

            assertEquals(0xFFFF, SMBUtil.readInt2(buffer, 14));
    
            // Test different offsets
            for (int offset = 0; offset <= 8; offset++) {
                SMBUtil.writeInt4(0x12345678, buffer, offset);
                assertEquals(0x12345678, SMBUtil.readInt4(buffer, offset));
            }
        }
    
        @Test
        void testNegativeValueHandling() {
            byte[] buffer = new byte[8];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            }
    
            bufferIndex += 12;
    
            // Validate sufficient buffer space for timestamps and offsets
            if (buffer.length < bufferIndex + 8 + 8 + 4 + 4) {
                throw new SMBProtocolDecodingException("Buffer too small for timestamps and offsets section");
            }
    
            this.systemTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  10. src/archive/tar/common.go

    //
    //	var spd sparseDatas = []sparseEntry{
    //		{Offset: 2,  Length: 5},  // Data fragment for 2..6
    //		{Offset: 18, Length: 3},  // Data fragment for 18..20
    //	}
    //	var sph sparseHoles = []sparseEntry{
    //		{Offset: 0,  Length: 2},  // Hole fragment for 0..1
    //		{Offset: 7,  Length: 11}, // Hole fragment for 7..17
    //		{Offset: 21, Length: 4},  // Hole fragment for 21..24
    //	}
    //
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Sep 13 21:03:27 UTC 2024
    - 24.5K bytes
    - Viewed (0)
Back to top