Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 25 for readULong (0.32 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/main/java/jcifs/ntlmssp/Type2Message.java

            }
            pos += 8;
    
            if (readULong(input, pos) != NTLMSSP_TYPE2) {
                throw new IOException("Not a Type 2 message.");
            }
            pos += 4;
    
            final int flags = readULong(input, pos + 8);
            setFlags(flags);
    
            final byte[] targetName = readSecurityBuffer(input, pos);
            final int targetNameOff = readULong(input, pos + 4);
            if (targetName.length != 0) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/ntlmssp/NtlmMessage.java

         */
        public void setFlag(final int flag, final boolean value) {
            setFlags(value ? getFlags() | flag : getFlags() & (0xffffffff ^ flag));
        }
    
        static int readULong(final byte[] src, final int index) {
            return src[index] & 0xff | (src[index + 1] & 0xff) << 8 | (src[index + 2] & 0xff) << 16 | (src[index + 3] & 0xff) << 24;
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

                }
            }
            if (readULong(material, 8) != 3) {
                throw new IOException("Not a Type 3 message.");
            }
            final byte[] lmResponse = readSecurityBuffer(material, 12);
            final int lmResponseOffset = readULong(material, 16);
            final byte[] ntResponse = readSecurityBuffer(material, 20);
            final int ntResponseOffset = readULong(material, 24);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 24.1K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/ntlmssp/Type1Message.java

                    throw new IOException("Not an NTLMSSP message.");
                }
            }
            if (readULong(material, 8) != 1) {
                throw new IOException("Not a Type 1 message.");
            }
            final int flags = readULong(material, 12);
            String suppliedDomain = null;
            if ((flags & NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED) != 0) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

        }
    
        // ---------------- Static read tests -----------------
        @Test
        @DisplayName("readULong correctly interprets little endian")
        void testReadULong() {
            byte[] a = new byte[] { (byte) 0x01, (byte) 0x02, (byte) 0x03, (byte) 0x04 };
            int result = NtlmMessage.readULong(a, 0);
            assertEquals(0x04030201, result, "ULong should be little‑endian");
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  6. src/main/java/jcifs/ntlmssp/Type3Message.java

            final int ntResponseOffset = readULong(material, pos + 4);
            pos += 8;
    
            final byte[] domainBytes = readSecurityBuffer(material, pos);
            final int domainOffset = readULong(material, pos + 4);
            pos += 8;
    
            final byte[] userBytes = readSecurityBuffer(material, pos);
            final int userOffset = readULong(material, pos + 4);
            pos += 8;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 32.7K bytes
    - Click Count (0)
  7. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

        }
    
        @Test
        void testReadULong() {
            // Test readULong with various values
            byte[] data = new byte[8];
            ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN);
    
            // Test with a positive value
            buffer.putInt(0, 0x12345678);
            assertEquals(0x12345678, NtlmMessage.readULong(data, 0), "Should read positive ULong correctly.");
    
            // Test with zero
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  8. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

                // Verify message type
                assertEquals(Type2Message.NTLMSSP_TYPE2, Type2Message.readULong(bytes, 8));
                // Verify flags
                assertEquals(message.getFlags(), Type2Message.readULong(bytes, 20));
            }
    
            @Test
            @DisplayName("toByteArray should include challenge and context correctly")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 38.9K bytes
    - Click Count (0)
  9. benchmarks/src/main/java/org/elasticsearch/common/bytes/BytesArrayReadVLongBenchmark.java

            }
            this.streamInput = bytesArray.streamInput();
        }
    
        @Benchmark
        public long readVLong() throws IOException {
            long res = 0;
            streamInput.reset();
            for (int i = 0; i < entries; i++) {
                res = res ^ streamInput.readVLong();
            }
            return res;
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Apr 12 20:25:06 GMT 2021
    - 2.2K bytes
    - Click Count (0)
  10. benchmarks/src/main/java/org/elasticsearch/common/bytes/BytesArrayReadLongBenchmark.java

            }
            streamInput = bytesArray.streamInput();
        }
    
        @Benchmark
        public long readLong() throws IOException {
            long res = 0L;
            streamInput.reset();
            final int reads = bytesArray.length() / 8;
            for (int i = 0; i < reads; i++) {
                res = res ^ streamInput.readLong();
            }
            return res;
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Apr 12 20:25:06 GMT 2021
    - 2.3K bytes
    - Click Count (0)
Back to Top