- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for readByte (0.05 sec)
-
src/test/java/jcifs/pac/PacDataInputStreamTest.java
byte[] data = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05 }; PacDataInputStream pdis = createInputStream(data); pdis.readByte(); // position is 1 pdis.align(4); assertEquals(1, pdis.available()); assertEquals(0x05, pdis.readByte()); // Test no alignment needed pdis = createInputStream(new byte[] { 0x01, 0x02, 0x03, 0x04 }); pdis.readInt(); // position is 4
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 9.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketReader.kt
// Disable the timeout to read the first byte of a new frame. val b0: Int val timeoutBefore = source.timeout().timeoutNanos() source.timeout().clearTimeout() try { b0 = source.readByte() and 0xff } finally { source.timeout().timeout(timeoutBefore, TimeUnit.NANOSECONDS) } opcode = b0 and B0_MASK_OPCODE isFinalFrame = b0 and B0_FLAG_FIN != 0
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 29 22:04:11 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacDataInputStream.java
} /** * Reads a single byte value. * @return the byte value * @throws IOException if an I/O error occurs */ public byte readByte() throws IOException { return this.dis.readByte(); } /** * Reads a 16-bit short value with proper alignment and byte order. * @return the short value in little-endian format
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.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] != (byte) 0x00; } @Override public final byte readByte() throws SmbException { if (read(tmp, 0, 1) < 0) { throw new SmbException("EOF"); } return 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) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
raf.setLength(0L); verify(tree, times(1)).send(any(SmbComWrite.class), any(SmbComWriteResponse.class), eq(RequestParam.NO_RETRY)); } @Test @DisplayName("readBoolean/readByte/readUnsignedByte: decode 1-byte values") void read_oneByteVariants() throws Exception { SmbRandomAccessFile raf = spy(newInstance("r", false, false, false));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteStreams.java
try { return input.readBoolean(); } catch (IOException e) { throw new IllegalStateException(e); } } @Override public byte readByte() { try { return input.readByte(); } catch (EOFException e) { throw new IllegalStateException(e); } catch (IOException impossible) { throw new AssertionError(impossible); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 31.1K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/BloomFilter.java
// add non-stateless strategies (for which we've reserved negative ordinals; see // Strategy.ordinal()). strategyOrdinal = din.readByte(); numHashFunctions = toUnsignedInt(din.readByte()); dataLength = din.readInt(); /* * We document in BloomFilterStrategies that we must not change the ordering, and we have a
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 31 13:15:26 UTC 2025 - 26.9K bytes - Viewed (0) -
src/bufio/bufio.go
totalLen += len(frag) return fullBuffers, frag, totalLen, err } // ReadBytes reads until the first occurrence of delim in the input, // returning a slice containing the data up to and including the delimiter. // If ReadBytes encounters an error before finding a delimiter, // it returns the data read before the error and the error itself (often io.EOF). // ReadBytes returns err != nil if and only if the returned data does not end in // delim.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Sep 03 14:04:47 UTC 2025 - 22K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
if (read(this.tmp, 0, 1) < 0) { throw new SmbEndOfFileException(); } return this.tmp[0] != (byte) 0x00; } @Override public final byte readByte() throws SmbException { if (read(this.tmp, 0, 1) < 0) { throw new SmbEndOfFileException(); } return 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/jvmTest/kotlin/okhttp3/CallTest.kt
val bodySource = response.body.source() assertThat(bodySource.readByte()).isEqualTo('d'.code.toByte()) // The second byte of this request will be delayed by 750ms so we should time out after 250ms. val startNanos = System.nanoTime() bodySource.use { assertFailsWith<IOException> { bodySource.readByte() }.also { expected -> // Timed out as expected.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 146.6K bytes - Viewed (0)