- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 82 for BytesRead (0.06 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheInterceptor.kt
} throw e } if (bytesRead == -1L) { if (!cacheRequestClosed) { cacheRequestClosed = true cacheBody.close() // The cache response is complete! } return -1 } sink.copyTo(cacheBody.buffer, sink.size - bytesRead, bytesRead) cacheBody.emitCompleteSegments() return bytesReadCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 10.3K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java
writeInt4(1000, buffer, 8); // alloc writeInt4(500, buffer, 12); // free writeInt2(512, buffer, 16); // bytesPerSect int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length); assertEquals(20, bytesRead, "Should read 20 bytes"); assertNotNull(response.info, "Info object should not be null");
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.6K bytes - Click Count (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ResponseDataTest.java
assertNotNull(data.getResponseBody()); try (InputStream is = data.getResponseBody()) { byte[] buffer = new byte[content.length]; int bytesRead = is.read(buffer); assertEquals(content.length, bytesRead); assertTrue(Arrays.equals(content, buffer)); } catch (IOException e) { fail("IOException should not occur: " + e.getMessage()); } }
Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Thu Nov 13 13:29:22 GMT 2025 - 14.3K bytes - Click Count (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStreamTest.java
IgnoreCloseInputStream stream = new IgnoreCloseInputStream(underlyingStream); byte[] buffer = new byte[5]; int bytesRead = stream.read(buffer); assertEquals(5, bytesRead); assertEquals("Hello", new String(buffer)); } public void test_readBytesWithOffset_delegatesToUnderlying() throws IOException {
Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Sat Nov 22 13:28:22 GMT 2025 - 6.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java
// Given SmbComClose smbComClose = new SmbComClose(config, 1, 1L); byte[] buffer = new byte[0]; // When int bytesRead = smbComClose.readParameterWordsWireFormat(buffer, 0); // Then assertEquals(0, bytesRead); } /** * Test method for {@link jcifs.internal.smb1.com.SmbComClose#readBytesWireFormat(byte[], int)}. */ @TestCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
SMBUtil.writeInt4(0x20, buffer, bufferIndex + 56); // FILE_ATTRIBUTE_ARCHIVE // When int bytesRead = response.readBytesWireFormat(buffer, bufferIndex); // Then assertEquals(60, bytesRead); assertEquals(SMB2_CLOSE_FLAG_POSTQUERY_ATTIB, response.getCloseFlags());
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 26.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
byte[] buffer = new byte[16]; SMBUtil.writeInt8(expectedValue, buffer, 0); // Decode int bytesRead = fileInfo.decode(buffer, 0, buffer.length); // Verify bytes read assertEquals(8, bytesRead); // Verify decoded value through toString assertTrue(fileInfo.toString().contains("endOfFile=" + expectedValue)); } @Test
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComReadAndXResponseTest.java
writeInt2(dataOffset, buffer, bufferIndex); } @Test public void testReadParameterWordsWireFormat() { int bytesRead = response.readParameterWordsWireFormat(buffer, 0); assertEquals(20, bytesRead); assertEquals(dataCompactionMode, response.dataCompactionMode); assertEquals(dataLength, response.dataLength);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.3K bytes - Click Count (0) -
internal/hash/reader.go
} } if r.expectedMax > 0 { if r.bytesRead > r.expectedMax { return 0, SizeTooLarge{Want: r.expectedMax, Got: r.bytesRead} } } if r.sha256 != nil { if sum := r.sha256.Sum(nil); !bytes.Equal(r.contentSHA256, sum) { return n, SHA256Mismatch{ ExpectedSHA256: hex.EncodeToString(r.contentSHA256), CalculatedSHA256: hex.EncodeToString(sum), } } }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Jun 25 15:08:54 GMT 2025 - 11.8K bytes - Click Count (0) -
src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java
// Create a buffer large enough to hold the read bytes byte[] buffer = new byte[6]; int bytesRead = packet.readTrailerWireFormat(bais, buffer, 0); // Verify that 6 bytes were read, which is the expected length. assertEquals(6, bytesRead); } @Test void readTrailerWireFormatShouldThrowIOExceptionOnUnexpectedEOF() throws IOException {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3K bytes - Click Count (0)