- Sort Score
- Result 10 results
- Languages All
Results 341 - 350 of 1,388 for real (0.04 sec)
-
android/guava-tests/test/com/google/common/io/CharStreamsTest.java
Reader reader = new StringReader(testString); assertEquals(testString.charAt(0), reader.read()); CharStreams.skipFully(reader, 1); assertEquals(testString.charAt(2), reader.read()); CharStreams.skipFully(reader, 2); assertEquals(testString.charAt(5), reader.read()); assertEquals(-1, reader.read()); } public void testAsWriter() { // Should wrap Appendable in a new object
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 11.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharStreamsTest.java
Reader reader = new StringReader(testString); assertEquals(testString.charAt(0), reader.read()); CharStreams.skipFully(reader, 1); assertEquals(testString.charAt(2), reader.read()); CharStreams.skipFully(reader, 2); assertEquals(testString.charAt(5), reader.read()); assertEquals(-1, reader.read()); } public void testAsWriter() { // Should wrap Appendable in a new object
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 11.3K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartReader.kt
else -> source.read(sink, limit) } } } override fun timeout(): Timeout = timeout } /** * Returns a value in [0..maxByteCount] with the number of bytes that can be read from [source] * in the current part. If this returns 0 the current part is exhausted; otherwise it has at * least one byte left to read. */Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed May 28 02:11:14 UTC 2025 - 7.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java
*/ @Override public int read(final byte[] b) throws IOException { return read(b, 0, b.length); } /** * Reads up to len bytes of data from this input stream into an array of bytes. * * @throws IOException if a network error occurs */ @Override public int read(final byte[] b, final int off, final int len) throws IOException {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9.4K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/UppercaseResponseInterceptor.kt
@Throws(IOException::class) override fun read( sink: Buffer, byteCount: Long, ): Long { val buffer = Buffer() val read = delegate.read(buffer, byteCount) if (read != -1L) { sink.write(buffer.readByteString().toAsciiUppercase()) } return read } } }Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java
} bufferIndex += 4; // Read signature System.arraycopy(buffer, bufferIndex, header.signature, 0, 16); bufferIndex += 16; // Read nonce System.arraycopy(buffer, bufferIndex, header.nonce, 0, 16); bufferIndex += 16; // Read original message size header.originalMessageSize = SMBUtil.readInt4(buffer, bufferIndex);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaStatistics.java
/** * Record start of a read request * * @param bytes number of bytes being requested */ public void recordReadRequest(int bytes) { // Track that a read was requested rdmaReads.incrementAndGet(); } /** * Record successful completion of a read request * * @param bytes number of bytes successfully readRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 10.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbConstants.java
int CAP_LEVEL_II_OPLOCKS = 0x0080; /** Lock and read capability */ int CAP_LOCK_AND_READ = 0x0100; /** NT find capability */ int CAP_NT_FIND = 0x0200; /** DFS capability */ int CAP_DFS = 0x1000; /** Extended security capability */ int CAP_EXTENDED_SECURITY = 0x80000000; // file attribute encoding /** Read-only file attribute */ int ATTR_READONLY = 0x01;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
} @Test @DisplayName("Should throw exception with buffer too small to read structure size") void testReadBytesWireFormatInsufficientBufferForStructureSize() { // Given byte[] buffer = new byte[1]; // Too small to read 2-byte structure size // When & ThenRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
byte[] expectedFileId = createTestData(16); System.arraycopy(expectedFileId, 0, buffer, bufferIndex, 16); // Read the buffer int bytesRead = notification.readBytesWireFormat(buffer, 0); // Verify the bytes read assertEquals(24, bytesRead); // Verify the fields were set correctly using reflection
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0)