Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 486 for _offsets (0.06 sec)

  1. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            });
        }
    
        @Test
        @DisplayName("Should write consistent structure at different 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];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

                assertEquals(descrBytes[i], dst[offset + i]);
            }
            offset += descrBytes.length;
    
            // 3. Level (2 bytes)
            assertEquals(0x0001, SMBUtil.readInt2(dst, offset));
            offset += 2;
    
            // 4. MaxDataCount (2 bytes)
            int maxDataCount = SMBUtil.readInt2(dst, offset);
            assertTrue(maxDataCount > 0);
            offset += 2;
    
            // Verify total bytes written
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            // Test reading data from different buffer offsets
            byte[] testData = "Test data with offset".getBytes();
            byte[] buffer = new byte[200];
            int offset = 50;
            System.arraycopy(testData, 0, buffer, offset, testData.length);
    
            int result = response.readDataWireFormat(buffer, offset, testData.length);
    
            assertEquals(testData.length, result);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

        @DisplayName("Test decode with buffer offset")
        void testDecodeWithBufferOffset() throws SMBProtocolDecodingException {
            String fileName = "offset_test.txt";
            int action = FileNotifyInformation.FILE_ACTION_MODIFIED;
            int offset = 50;
    
            byte[] smallBuffer = createValidNotificationBuffer(fileName, action);
            byte[] buffer = new byte[smallBuffer.length + offset + 50];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

            buffer[offset + 3] = 0;
            SMBUtil.writeInt4(0x1234, buffer, offset + 4);
            SMBUtil.writeInt4(0x5678, buffer, offset + 8);
            SMBUtil.writeInt4(0x9ABC, buffer, offset + 12);
    
            // When
            int bytesRead = response.readBytesWireFormat(buffer, offset);
    
            // Then
            assertEquals(16, bytesRead);
            assertEquals((byte) 0x02, response.getShareType());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

            int bytesWritten = packet.writeTrailerWireFormat(dst, offset);
    
            assertTrue(bytesWritten > 0);
            // Check that bytes before offset are unchanged
            for (int i = 0; i < offset; i++) {
                assertEquals((byte) 0xFF, dst[i]);
            }
            // Check that bytes after offset are written
            assertNotEquals((byte) 0xFF, dst[offset]);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. cmd/erasure-decode_test.go

    	}
    
    	// To generate random offset/length.
    	r := rand.New(rand.NewSource(UTCNow().UnixNano()))
    
    	buf := &bytes.Buffer{}
    
    	// Verify erasure.Decode() for random offsets and lengths.
    	for range iterations {
    		offset := r.Int63n(length)
    		readLen := r.Int63n(length - offset)
    
    		expected := data[offset : offset+readLen]
    
    		// Get the checksums of the current part.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 21K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/com/LockingAndXRange.java

         */
        public LockingAndXRange(final boolean largeFile) {
            this.largeFile = largeFile;
        }
    
        /**
         * Returns the process ID associated with this lock range.
         *
         * @return the process ID
         */
        public int getPid() {
            return this.pid;
        }
    
        /**
         * Returns the starting byte offset of the lock range.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

            buffer.putShort((short) 0x8004); // Control flags (SE_DACL_PRESENT | SE_SELF_RELATIVE)
            buffer.putInt(20); // Owner offset
            buffer.putInt(40); // Group offset
            buffer.putInt(0); // SACL offset (null)
            buffer.putInt(60); // DACL offset
    
            // Owner SID at offset 20
            buffer.position(20);
            buffer.put((byte) 0x01); // Revision
            buffer.put((byte) 0x01); // SubAuthorityCount
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java

            // No group (offset 0)
            for (int i = 8; i < 12; i++)
                securityDescriptorBytes[i] = 0;
            // No SACL (offset 0)
            for (int i = 12; i < 16; i++)
                securityDescriptorBytes[i] = 0;
            // DACL at offset 20
            securityDescriptorBytes[16] = 20;
            securityDescriptorBytes[17] = 0;
            securityDescriptorBytes[18] = 0;
            securityDescriptorBytes[19] = 0;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
Back to top