- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 41 for byteCount (0.15 sec)
-
samples/guide/src/main/java/okhttp3/recipes/Progress.java
private Source source(Source source) { return new ForwardingSource(source) { long totalBytesRead = 0L; @Override public long read(Buffer sink, long byteCount) throws IOException { long bytesRead = super.read(sink, byteCount); // read() returns the number of bytes read, or -1 if this source is exhausted. totalBytesRead += bytesRead != -1 ? bytesRead : 0;
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 12 03:31:36 GMT 2019 - 3.9K bytes - Viewed (0) -
android-test/README.md
01-01 12:53:32.811 10999 11089 D OkHttp : [49 ms] responseBodyStart 01-01 12:53:32.811 10999 11089 D OkHttp : [49 ms] responseBodyEnd: byteCount=128 01-01 12:53:32.811 10999 11089 D OkHttp : [49 ms] connectionReleased 01-01 12:53:32.811 10999 11089 D OkHttp : [49 ms] callEnd 01-01 12:53:32.816 10999 11090 D OkHttp : [54 ms] responseHeadersStart
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Feb 14 08:26:50 GMT 2023 - 2.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/io/FaultyFileSystem.kt
inner class FaultySink(sink: Sink, private val file: Path) : ForwardingSink(sink) { override fun write( source: Buffer, byteCount: Long, ) { if (writeFaults.contains(file)) { throw IOException("boom!") } else { super.write(source, byteCount) } } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXResponse.java
this.nativeLanMan = readString(buffer, bufferIndex, start + this.byteCount, 255, this.isUseUnicode()); bufferIndex += stringWireLength(this.nativeLanMan, bufferIndex); if ( !this.isExtendedSecurity() ) { this.primaryDomain = readString(buffer, bufferIndex, start + this.byteCount, 255, this.isUseUnicode()); bufferIndex += stringWireLength(this.primaryDomain, bufferIndex);
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 4.1K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/internal/IsProbablyUtf8.kt
* sample of code points to detect unicode control characters commonly used in binary file * signatures. */ fun Buffer.isProbablyUtf8(): Boolean { try { val prefix = Buffer() val byteCount = size.coerceAtMost(64) copyTo(prefix, 0, byteCount) for (i in 0 until 16) { if (prefix.exhausted()) { break } val codePoint = prefix.readUtf8CodePoint()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jan 07 16:05:34 GMT 2024 - 1.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ResponseJvmTest.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndXResponse.java
bufferIndex += stringWireLength( nativeOs, bufferIndex ); nativeLanMan = readString( buffer, bufferIndex, start + byteCount, 255, useUnicode ); bufferIndex += stringWireLength( nativeLanMan, bufferIndex ); if (!extendedSecurity) { primaryDomain = readString(buffer, bufferIndex, start + byteCount, 255, useUnicode); bufferIndex += stringWireLength(primaryDomain, bufferIndex); }
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Fri Mar 22 21:10:40 GMT 2019 - 2.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/SocksProxy.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 7.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ResponseCommonTest.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ResponseBodyTest.kt
assertThat(body.bytes()).isEqualTo(text) } } abstract class ForwardingSource( val delegate: Source, ) : Source { override fun read( sink: Buffer, byteCount: Long, ): Long = delegate.read(sink, byteCount) override fun timeout() = delegate.timeout() override fun close() = delegate.close()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4K bytes - Viewed (0)