- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 56 for byteCount (4.88 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 16.2K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt
logWithTime("requestBodyStart") delegate.requestBodyStart(call) } override fun requestBodyEnd( call: Call, byteCount: Long, ) { logWithTime("requestBodyEnd: byteCount=$byteCount") delegate.requestBodyEnd(call, byteCount) } override fun requestFailed( call: Call, ioe: IOException, ) { logWithTime("requestFailed: $ioe")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache/FaultHidingSink.kt
) : ForwardingSink(delegate) { private var hasErrors = false override fun write( source: Buffer, byteCount: Long, ) { if (hasErrors) { source.skip(byteCount) return } try { super.write(source, byteCount) } catch (e: IOException) { hasErrors = true onException(e) } } override fun flush() { if (hasErrors) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt
streamId: Int, byteCount: Long, ) { var byteCount = byteCount while (byteCount > 0L) { val length = minOf(maxFrameSize.toLong(), byteCount) byteCount -= length frameHeader( streamId = streamId, length = length.toInt(), type = TYPE_CONTINUATION, flags = if (byteCount == 0L) FLAG_END_HEADERS else 0, )
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 11.3K bytes - Viewed (0) -
okhttp-brotli/src/main/kotlin/okhttp3/brotli/internal/DecompressionBombChecker.kt
private var outputByteCount = 0L fun wrapInput(source: Source): Source { return object : ForwardingSource(source) { override fun read( sink: Buffer, byteCount: Long, ): Long { val result = super.read(sink, byteCount) if (result == -1L) return result inputByteCount += result return result } } } fun wrapOutput(source: Source): Source {
Plain Text - Registered: Fri Mar 29 11:42:11 GMT 2024 - Last Modified: Mon Jan 29 22:50:20 GMT 2024 - 1.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Response.kt
fun trailers(): Headers = trailersFn() /** * Peeks up to [byteCount] bytes from the response body and returns them as a new response * body. If fewer than [byteCount] bytes are in the response body, the full response body is * returned. If more than [byteCount] bytes are in the response body, the returned value * will be truncated to [byteCount] bytes. *
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 23 14:31:42 GMT 2024 - 15.5K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
result.writeDecimalLong(xy - 80L) } } while (byteCount < limit) { result.writeByte(dot) result.writeDecimalLong(readVariableLengthLong()) } return result.readUtf8() } fun readRelativeObjectIdentifier(): String { val result = Buffer() val dot = '.'.code.toByte().toInt() while (byteCount < limit) { if (result.size > 0) { result.writeByte(dot)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache2/FileOperator.kt
private val fileChannel: FileChannel, ) { /** Write [byteCount] bytes from [source] to the file at [pos]. */ @Throws(IOException::class) fun write( pos: Long, source: Buffer, byteCount: Long, ) { if (byteCount < 0L || byteCount > source.size) { throw IndexOutOfBoundsException() } var mutablePos = pos var mutableByteCount = byteCount while (mutableByteCount > 0L) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.4K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/UppercaseResponseInterceptor.kt
return object : ForwardingSource(source) { @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 } } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.8K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt
} override fun requestBodyStart(call: Call) { logWithTime("requestBodyStart") } override fun requestBodyEnd( call: Call, byteCount: Long, ) { logWithTime("requestBodyEnd: byteCount=$byteCount") } override fun requestFailed( call: Call, ioe: IOException, ) { logWithTime("requestFailed: $ioe") }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 11:07:32 GMT 2024 - 5.4K bytes - Viewed (0)