Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for readULong (0.05 sec)

  1. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. 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) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  4. 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;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/ntlmssp/Type2Message.java

                    throw new IOException("Not an NTLMSSP message.");
                }
            }
            if (readULong(material, 8) != 2) {
                throw new IOException("Not a Type 2 message.");
            }
            final int flags = readULong(material, 20);
            setFlags(flags);
            String target = null;
            byte[] bytes = readSecurityBuffer(material, 12);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 13K bytes
    - Viewed (0)
  6. 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")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache2/Relay.kt

          val prefix = header.readByteString(PREFIX_CLEAN.size.toLong())
          if (prefix != PREFIX_CLEAN) throw IOException("unreadable cache file")
          val upstreamSize = header.readLong()
          val metadataSize = header.readLong()
    
          // Read the metadata.
          val metadataBuffer = Buffer()
          fileOperator.read(FILE_HEADER_SIZE + upstreamSize, metadataBuffer, metadataSize)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 17:15:47 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketReader.kt

        if (frameLength == PAYLOAD_SHORT.toLong()) {
          frameLength = (source.readShort() and 0xffff).toLong() // Value is unsigned.
        } else if (frameLength == PAYLOAD_LONG.toLong()) {
          frameLength = source.readLong()
          if (frameLength < 0L) {
            throw ProtocolException(
              "Frame length 0x${frameLength.toHexString()} > 0x7FFFFFFFFFFFFFFF",
            )
          }
        }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            if (read(tmp, 0, 4) < 0) {
                throw new SmbException("EOF");
            }
            return Encdec.dec_uint32be(tmp, 0);
        }
    
        @Override
        public final long readLong() throws SmbException {
            if (read(tmp, 0, 8) < 0) {
                throw new SmbException("EOF");
            }
            return Encdec.dec_uint64be(tmp, 0);
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

        if (bytesLeft == 0L) throw ProtocolException("unexpected length: $bytesLeft at $this")
        val byteArray = source.readByteArray(bytesLeft)
        return BigInteger(byteArray)
      }
    
      fun readLong(): Long {
        if (bytesLeft !in 1..8) throw ProtocolException("unexpected length: $bytesLeft at $this")
    
        var result = source.readByte().toLong() // No "and 0xff" because this is a signed value!
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
Back to top