- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 15 for readULong (0.05 seconds)
-
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) -
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) -
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"); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.8K bytes - Click Count (0) -
src/main/java/jcifs/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 - 5.4K bytes - Click Count (0) -
src/main/java/jcifs/ntlmssp/Type1Message.java
throw new IOException("Not an NTLMSSP message."); } } pos += 8; if (readULong(material, pos) != NTLMSSP_TYPE1) { throw new IOException("Not a Type 1 message."); } pos += 4; final int flags = readULong(material, pos); setFlags(flags); pos += 4; 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.8K bytes - Click Count (0) -
android/guava/src/com/google/common/io/LittleEndianDataInputStream.java
* Reads a {@code long} as specified by {@link DataInputStream#readLong()}, except using * little-endian byte order. * * @return the next eight bytes of the input stream, interpreted as a {@code long} in * little-endian byte order * @throws IOException if an I/O error occurs */ @CanIgnoreReturnValue // to skip some bytes @Override public long readLong() throws IOException { byte b1 = readAndCheckByte();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 12 03:49:18 GMT 2025 - 7.3K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/LongAdder.java
s.writeLong(sum()); } private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); busy = 0; cells = null; base = s.readLong(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.6K bytes - Click Count (0) -
android/guava/src/com/google/common/io/ByteArrayDataInput.java
@Override char readChar(); @CanIgnoreReturnValue // to skip some bytes @Override int readInt(); @CanIgnoreReturnValue // to skip some bytes @Override long readLong(); @CanIgnoreReturnValue // to skip some bytes @Override float readFloat(); @CanIgnoreReturnValue // to skip some bytes @Override double readDouble();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 27 20:25:25 GMT 2024 - 2.7K bytes - Click Count (0) -
src/main/java/jcifs/pac/PacDataInputStream.java
* @return the long value in little-endian format * @throws IOException if an I/O error occurs */ public long readLong() throws IOException { align(8); return Long.reverseBytes(this.dis.readLong()); } /** * Reads an unsigned byte value. * @return the unsigned byte value as an integer * @throws IOException if an I/O error occursCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java
assertEquals('\u6100', in.readChar()); assertEquals(-12150, in.readShort()); assertEquals(20675, in.readUnsignedShort()); assertEquals(0xBEBAFECA, in.readInt()); assertEquals(0xBEBAFECAEFBEADDEL, in.readLong()); assertThat(in.readUTF()).isEqualTo("Herby Derby"); assertEquals(0xBEBAFECA, Float.floatToIntBits(in.readFloat())); assertEquals(0xBEBAFECAEFBEADDEL, Double.doubleToLongBits(in.readDouble())); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 4.9K bytes - Click Count (0)