- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 16 for readULong (0.11 seconds)
-
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) -
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) -
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) -
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 zeroCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.5K bytes - Click Count (0) -
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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 13K bytes - Click Count (0) -
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) -
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", ) } }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 10K bytes - Click Count (0) -
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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 14.1K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
name = "INTEGER", tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = 2L, codec = object : BasicDerAdapter.Codec<Long> { override fun decode(reader: DerReader): Long = reader.readLong() override fun encode( writer: DerWriter, value: Long, ) = writer.writeLong(value) }, ) val INTEGER_AS_BIG_INTEGER = BasicDerAdapter(
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 15K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/ByteStreamsTest.java
} public void testNewDataInput_readLong() { byte[] data = {0x12, 0x34, 0x56, 0x78, 0x76, 0x54, 0x32, 0x10}; ByteArrayDataInput in = ByteStreams.newDataInput(data); assertEquals(0x1234567876543210L, in.readLong()); } public void testNewDataInput_readBoolean() { ByteArrayDataInput in = ByteStreams.newDataInput(bytes); assertTrue(in.readBoolean()); } public void testNewDataInput_readByte() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 22K bytes - Click Count (0)