- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 82 for BytesRead (0.1 seconds)
-
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
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
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
// When int bytesRead = testResponse.readBytesWireFormat(buffer, bufferIndex); // Then assertTrue(testResponse.errorResponseCalled); assertEquals(8, bytesRead); // Error response is 8 bytes } @DisplayName("Should throw exception for invalid structure size") @ParameterizedTestCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 22.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteAndXResponseTest.java
int bytesRead = response.readParameterWordsWireFormat(buffer, 0); // The count should be read from the buffer. assertEquals(10L, response.count); // The method should return the number of bytes read. assertEquals(8, bytesRead); } /** * Test the writeParameterWordsWireFormat method. */Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java
Trans2QueryPathInformation trans = new Trans2QueryPathInformation("anyfile.txt", 0); byte[] buffer = new byte[10]; // When int bytesRead = trans.readSetupWireFormat(buffer, 0, 10); // Then assertEquals(0, bytesRead, "Should read 0 bytes."); } /** * Tests the readParametersWireFormat method. */ @Test void testReadParametersWireFormat() {
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (0) -
internal/s3select/progress.go
type countUpReader struct { reader io.Reader bytesRead int64 } // Max bzip2 concurrency across calls. 50% of GOMAXPROCS. var bz2Limiter = pbzip2.CreateConcurrencyPool((runtime.GOMAXPROCS(0) + 1) / 2) func (r *countUpReader) Read(p []byte) (n int, err error) { n, err = r.reader.Read(p) atomic.AddInt64(&r.bytesRead, int64(n)) return n, err } func (r *countUpReader) BytesRead() int64 { if r == nil { return 0 }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 22 00:33:43 GMT 2024 - 4.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
SMBUtil.writeInt2(0, buffer, bufferIndex + 2); // Reserved field // When int bytesRead = response.readBytesWireFormat(buffer, bufferIndex); // Then assertEquals(4, bytesRead); } @Test @DisplayName("Should throw exception for invalid structure size")
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java
byte[] buffer = new byte[10]; // When int bytesRead = transCallNamedPipe.readSetupWireFormat(buffer, 0, buffer.length); // Then assertEquals(0, bytesRead); } @Test @DisplayName("Test writeParametersWireFormat returns 0") void testWriteParametersWireFormat() { // Given
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/MessageInflater.kt
val totalBytesToRead = inflater.bytesRead + deflatedBytes.size // We cannot read all, as the source does not close. // Instead, we ensure that all bytes from source have been processed by inflater. do { inflaterSource.readOrInflate(buffer, Long.MAX_VALUE) } while (inflater.bytesRead < totalBytesToRead && !inflater.finished())Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Sep 21 06:26:07 GMT 2025 - 2.4K bytes - Click Count (0) -
internal/http/request-recorder.go
buf bytes.Buffer // total bytes read including header size bytesRead int } // Close is a no operation closer func (r *RequestRecorder) Close() error { // no-op return nil } // Read reads from the internal reader and counts/save the body in the memory func (r *RequestRecorder) Read(p []byte) (n int, err error) { n, err = r.Reader.Read(p) r.bytesRead += n if r.LogBody { r.buf.Write(p[:n]) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Apr 12 21:37:19 GMT 2023 - 1.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
int action = FileNotifyInformation.FILE_ACTION_MODIFIED; byte[] buffer = createValidNotificationBuffer(fileName, action); int bytesRead = notifyInfo.decode(buffer, 0, buffer.length); assertTrue(bytesRead > 0); assertEquals(0, notifyInfo.getNextEntryOffset()); // Single entry has 0 offset assertEquals(action, notifyInfo.getAction());Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.1K bytes - Click Count (0)