Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 665 for 16 (0.02 sec)

  1. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

                // Verify length (8 bytes)
                assertEquals(length, SMBUtil.readInt8(buffer, 8));
    
                // Verify flags (4 bytes)
                assertEquals(flags, SMBUtil.readInt4(buffer, 16));
    
                // Verify reserved field is zeros (4 bytes)
                assertEquals(0, SMBUtil.readInt4(buffer, 20));
            }
    
            @Test
            @DisplayName("Should encode at different buffer positions")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

                assertEquals(300, SMBUtil.readInt4(buffer, 16));
    
                // Verify second chunk
                assertEquals(400L, SMBUtil.readInt8(buffer, EXPECTED_SIZE));
                assertEquals(500L, SMBUtil.readInt8(buffer, EXPECTED_SIZE + 8));
                assertEquals(600, SMBUtil.readInt4(buffer, EXPECTED_SIZE + 16));
    
                // Verify third 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)
  3. guava/src/com/google/common/hash/Fingerprint2011.java

        long a = load64(bytes, offset) + (length + load64(bytes, offset + length - 16)) * K0;
        long b = rotateRight(a + z, 52);
        long c = rotateRight(a, 37);
        a += load64(bytes, offset + 8);
        c += rotateRight(a, 7);
        a += load64(bytes, offset + 16);
        long vf = a + z;
        long vs = b + rotateRight(a, 31) + c;
        a = load64(bytes, offset + 16) + load64(bytes, offset + length - 32);
        z = load64(bytes, offset + length - 8);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            // Verify context name is encoded at offset 16
            byte[] nameBytes = new byte[4];
            System.arraycopy(buffer, 16, nameBytes, 0, 4);
            assertArrayEquals("RqLs".getBytes(), nameBytes);
    
            // Verify lease key is encoded at offset 24 (after header + name + padding)
            byte[] encodedKey = new byte[16];
            System.arraycopy(buffer, 24, encodedKey, 0, 16);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/util/HexdumpTest.java

            byte[] data = createTestData(64);
            int offset = 16;
            int length = 32;
    
            Hexdump.hexdump(ps, data, offset, length);
            String output = baos.toString();
    
            assertNotNull(output);
            // Should start at offset 0 in display but show data from offset 16
            assertTrue(output.contains("00000:"));
            // First byte should be 0x10 (16 in decimal)
            assertTrue(output.contains(" 10 11 12"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

            @Test
            @DisplayName("Should update file ID multiple times")
            void testMultipleFileIdUpdates() {
                byte[] firstFileId = new byte[16];
                Arrays.fill(firstFileId, (byte) 0xAA);
                byte[] secondFileId = new byte[16];
                Arrays.fill(secondFileId, (byte) 0xBB);
    
                request.setFileId(firstFileId);
                request.setFileId(secondFileId);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            // Set capabilities (4 bytes)
            int testCapabilities = 0x12345678;
            SMBUtil.writeInt4(testCapabilities, buffer, bufferIndex);
    
            // Set server GUID (16 bytes)
            byte[] testGuid = new byte[16];
            for (int i = 0; i < 16; i++) {
                testGuid[i] = (byte) (i + 1);
            }
            System.arraycopy(testGuid, 0, buffer, bufferIndex + 4, 16);
    
            // Set security mode (2 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextResponse.java

            }
    
            // Read lease V2 data (52 bytes)
            byte[] keyBytes = new byte[16];
            System.arraycopy(buffer, bufferIndex, keyBytes, 0, 16);
            this.leaseKey = new Smb2LeaseKey(keyBytes);
            bufferIndex += 16;
    
            this.leaseState = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseContext.java

            // Skip context header (16 bytes) and name (4 bytes) and padding (4 bytes)
            int dataOffset = offset + 24;
    
            // Decode standard lease data
            byte[] keyBytes = new byte[16];
            System.arraycopy(buffer, dataOffset, keyBytes, 0, 16);
            this.leaseKey = new Smb2LeaseKey(keyBytes);
            dataOffset += 16;
    
            this.leaseState = SMBUtil.readInt4(buffer, dataOffset);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java

        @DisplayName("Should generate random lease key with correct size")
        void testRandomLeaseKeyGeneration() {
            Smb2LeaseKey key = new Smb2LeaseKey();
    
            assertNotNull(key.getKey());
            assertEquals(16, key.getKey().length);
            assertFalse(key.isZero());
        }
    
        @Test
        @DisplayName("Should create lease key from byte array")
        void testLeaseKeyFromBytes() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top