Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 486 for _offsets (0.04 sec)

  1. 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)
  2. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

            assertEquals((byte) 0x04, dst[0]); // First buffer format byte
        }
    
        /**
         * Test writeBytesWireFormat with different buffer offsets
         */
        @Test
        @DisplayName("Test writeBytesWireFormat with different buffer offsets")
        public void testWriteBytesWireFormatWithOffset() {
            // Given
            String oldFileName = "old.txt";
            String newFileName = "new.txt";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

        void testReadSetupWireFormatVariousParams() {
            // Test with different buffer sizes and offsets
            int[][] testCases = { { 0, 50 }, // No offset, 50 bytes
                    { 10, 90 }, // 10 byte offset, 90 bytes
                    { 50, 50 }, // 50 byte offset, 50 bytes
                    { 0, 0 }, // Empty buffer
                    { 100, 100 } // Large values
            };
    
    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/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)
  9. src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java

            @DisplayName("Should decode at various offsets")
            @ValueSource(ints = { 0, 10, 50, 100, 200 })
            void testDecodeAtVariousOffsets(int offset) throws SMBProtocolDecodingException {
                byte[] buffer = new byte[512];
                byte[] responseData = createValidCopyChunkResponse(7, 8192, 57344);
                System.arraycopy(responseData, 0, buffer, offset, responseData.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)
  10. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

        void testWriteBytesWireFormat() {
            // Given
            byte[] buffer = new byte[256];
            int offset = 10;
    
            // When
            int bytesWritten = response.writeBytesWireFormat(buffer, offset);
    
            // Then
            assertEquals(0, bytesWritten);
        }
    
        @DisplayName("Should write zero bytes at various offsets")
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 10, 50, 100, 255 })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
Back to top