- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for readUShort (0.05 sec)
-
android/guava/src/com/google/common/io/ByteArrayDataInput.java
@Override byte readByte(); @CanIgnoreReturnValue // to skip a byte @Override int readUnsignedByte(); @CanIgnoreReturnValue // to skip some bytes @Override short readShort(); @CanIgnoreReturnValue // to skip some bytes @Override int readUnsignedShort(); @CanIgnoreReturnValue // to skip some bytes @Override char readChar();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Dec 27 20:25:25 UTC 2024 - 2.7K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacDataInputStreamTest.java
// Little-endian 0x1234 -> 0x34 0x12 byte[] data = new byte[] { 0x34, 0x12, 0x00, 0x00 }; PacDataInputStream pdis = createInputStream(data); assertEquals((short) 0x1234, pdis.readShort()); } @Test public void testReadInt() throws IOException { // Little-endian 0x12345678 -> 0x78 0x56 0x34 0x12 byte[] data = new byte[] { 0x78, 0x56, 0x34, 0x12 };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
assertTrue(raf.readBoolean()); assertEquals((byte) 0xFF, raf.readByte()); assertEquals(0xFF, raf.readUnsignedByte()); } @Test @DisplayName("readShort/UnsignedShort/Char: big-endian decoding") void read_twoByteVariants() throws Exception { SmbRandomAccessFile raf = spy(newInstance("r", false, false, false)); doAnswer(inv -> {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacLogonInfo.java
final PacUnicodeString homeDriveString = pacStream.readUnicodeString(); // Some counts this.logonCount = pacStream.readShort(); this.badPasswordCount = pacStream.readShort(); // IDs for user final SID userId = pacStream.readId(); final SID groupId = pacStream.readId(); // Groups information
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java
assertEquals(100, in.readByte()); assertEquals(-100, in.readByte()); assertEquals(200, in.readUnsignedByte()); assertEquals('\u6100', in.readChar()); assertEquals(-12150, in.readShort()); assertEquals(20675, in.readUnsignedShort()); assertEquals(0xBEBAFECA, in.readInt()); assertEquals(0xBEBAFECAEFBEADDEL, in.readLong()); assertEquals("Herby Derby", in.readUTF());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java
if (read(tmp, 0, 1) < 0) { throw new SmbException("EOF"); } return tmp[0] & 0xFF; } @Override public final short readShort() throws SmbException { if (read(tmp, 0, 2) < 0) { throw new SmbException("EOF"); } return Encdec.dec_uint16be(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) -
guava/src/com/google/common/net/InetAddresses.java
Inet4Address server = getInet4Address(Arrays.copyOfRange(bytes, 4, 8)); int flags = ByteStreams.newDataInput(bytes, 8).readShort() & 0xffff; // Teredo obfuscates the mapped client port, per section 4 of the RFC. int port = ~ByteStreams.newDataInput(bytes, 10).readShort() & 0xffff; byte[] clientBytes = Arrays.copyOfRange(bytes, 12, 16); for (int i = 0; i < clientBytes.length; i++) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 47.4K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteStreams.java
try { return input.readUnsignedByte(); } catch (IOException e) { throw new IllegalStateException(e); } } @Override public short readShort() { try { return input.readShort(); } catch (IOException e) { throw new IllegalStateException(e); } } @Override public int readUnsignedShort() { try {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 31.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
if (read(this.tmp, 0, 1) < 0) { throw new SmbEndOfFileException(); } return this.tmp[0] & 0xFF; } @Override public final short readShort() throws SmbException { if (read(this.tmp, 0, 2) < 0) { throw new SmbEndOfFileException(); } return Encdec.dec_uint16be(this.tmp, 0); } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.8K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Reader.kt
return } if (length % 6 != 0) throw IOException("TYPE_SETTINGS length % 6 != 0: $length") val settings = Settings() for (i in 0 until length step 6) { val id = source.readShort() and 0xffff val value = source.readInt() when (id) { // SETTINGS_HEADER_TABLE_SIZE 1 -> { } // SETTINGS_ENABLE_PUSH 2 -> {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 19.8K bytes - Viewed (0)