Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 154 for 0x01 (0.23 sec)

  1. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java

                    new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10 };
    
            Smb2LeaseKey key = new Smb2LeaseKey(originalBytes);
            byte[] retrievedKey = key.getKey();
    
            // Modify the retrieved key
            retrievedKey[0] = (byte) 0xFF;
    
            // Original key should remain unchanged
            assertEquals(0x01, key.getKey()[0]);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java

         * The constructor should only use the first 8/32 bytes.
         */
        @Test
        void testAvSingleHostCustomDataMachineIdConstructor_LongerInputs() {
            byte[] customData = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A }; // Longer than 8
            byte[] machineId = new byte[40]; // Longer than 32
            for (int i = 0; i < 40; i++) {
                machineId[i] = (byte) i;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/SipHashFunctionTest.java

      public void testCollisionsDueToIncorrectSignExtension() {
        byte[] col1 = new byte[] {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, (byte) 0x80};
        byte[] col2 = new byte[] {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, (byte) 0x81};
        byte[] col3 = new byte[] {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, (byte) 0xff};
    
        ImmutableSet<HashCode> hashCodes =
            ImmutableSet.of(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/ByteEncodableTest.java

            byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05 };
            ByteEncodable encodable = new ByteEncodable(data, 1, 3);
    
            // Verify size
            assertEquals(3, encodable.size(), "Size should be equal to the specified length");
        }
    
        @Test
        void testEncodeBasic() {
            // Test basic encoding
            byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/DcerpcConstants.java

         */
        int RPC_PT_REQUEST = 0x00;
        /**
         * Ping packet type
         */
        int RPC_PT_PING = 0x01;
        /**
         * Response packet type
         */
        int RPC_PT_RESPONSE = 0x02;
        /**
         * Fault packet type - indicates an error
         */
        int RPC_PT_FAULT = 0x03;
        /**
         * Bind packet type - establishes context
         */
        int RPC_PT_BIND = 0x0B;
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java

        }
    
        /**
         * Test constructor with a malformed ASN.1 token.
         */
        @Test
        void testConstructor_MalformedToken() {
            // 1. GIVEN
            byte[] malformedToken = new byte[] { 0x00, 0x01, 0x02, 0x03 }; // Not a valid ASN.1 sequence
            Map<Integer, KerberosKey> keys = new HashMap<>();
    
            // 2. WHEN & 3. THEN
            PACDecodingException exception = assertThrows(PACDecodingException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseStateTest.java

        void testLeaseStateConstants() {
            assertEquals(0x00, Smb2LeaseState.SMB2_LEASE_NONE);
            assertEquals(0x01, Smb2LeaseState.SMB2_LEASE_READ_CACHING);
            assertEquals(0x02, Smb2LeaseState.SMB2_LEASE_HANDLE_CACHING);
            assertEquals(0x04, Smb2LeaseState.SMB2_LEASE_WRITE_CACHING);
            assertEquals(0x03, Smb2LeaseState.SMB2_LEASE_READ_HANDLE);
            assertEquals(0x05, Smb2LeaseState.SMB2_LEASE_READ_WRITE);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/lease/Smb2LeaseState.java

        public static final int SMB2_LEASE_NONE = 0x00;
    
        /**
         * Read caching lease (R)
         */
        public static final int SMB2_LEASE_READ_CACHING = 0x01;
    
        /**
         * Handle caching lease (H)
         */
        public static final int SMB2_LEASE_HANDLE_CACHING = 0x02;
    
        /**
         * Write caching lease (W)
         */
        public static final int SMB2_LEASE_WRITE_CACHING = 0x04;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComOpenAndX.java

        private static final int FLAGS_RETURN_ADDITIONAL_INFO = 0x01;
        private static final int FLAGS_REQUEST_OPLOCK = 0x02;
        private static final int FLAGS_REQUEST_BATCH_OPLOCK = 0x04;
    
        // Access Mode Encoding for desiredAccess
        private static final int SHARING_COMPATIBILITY = 0x00;
        private static final int SHARING_DENY_READ_WRITE_EXECUTE = 0x10;
        private static final int SHARING_DENY_WRITE = 0x20;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/ntlmssp/av/AvChannelBindingsTest.java

        /**
         * Test that the constructor correctly initializes with a valid channel binding hash.
         */
        @Test
        void testConstructorWithValidHash() {
            byte[] testHash = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 };
            AvChannelBindings avChannelBindings = new AvChannelBindings(testHash);
    
            assertEquals(AvPair.MsvAvChannelBindings, avChannelBindings.getType(), "Type should be MsvAvChannelBindings");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top