- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 40 for byteCount (0.24 sec)
-
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) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.4K 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") }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 11:07:32 UTC 2024 - 5.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/MultipartReader.kt
} override fun read( sink: Buffer, byteCount: Long, ): Long { require(byteCount >= 0L) { "byteCount < 0: $byteCount" } check(currentPart == this) { "closed" } source.timeout().intersectWith(timeout) { return when (val limit = currentPartBytesRemaining(maxResult = byteCount)) { 0L -> -1L // No more bytes in this part.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.1K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/internal/TriggerSink.kt
) : Sink by delegate { private var bytesWritten = 0L override fun write( source: Buffer, byteCount: Long, ) { if (byteCount == 0L) return // Avoid double-triggering. if (bytesWritten == triggerByteCount) { source.skip(byteCount) return } val toWrite = minOf(byteCount, triggerByteCount - bytesWritten) bytesWritten += toWrite delegate.write(source, toWrite)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.4K 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")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt
override fun write( source: Buffer, byteCount: Long, ) { check(!closed) { "closed" } if (contentLength != -1L && bytesReceived + byteCount > contentLength) { throw ProtocolException( "expected $contentLength bytes but received ${bytesReceived + byteCount}", ) } try { super.write(source, byteCount) this.bytesReceived += byteCount
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.2K 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); }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 2.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersJvmTest.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-RequestBodyCommon.kt
contentType: MediaType?, offset: Int, byteCount: Int, ): RequestBody { checkOffsetAndCount(size.toLong(), offset.toLong(), byteCount.toLong()) return object : RequestBody() { override fun contentType() = contentType override fun contentLength() = byteCount.toLong() override fun writeTo(sink: BufferedSink) { sink.write(this@commonToRequestBody, offset, byteCount) } } } @Suppress("unused")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/FormBody.kt
countBytes: Boolean, ): Long { var byteCount = 0L val buffer: Buffer = if (countBytes) Buffer() else sink!!.buffer for (i in 0 until encodedNames.size) { if (i > 0) buffer.writeByte('&'.code) buffer.writeUtf8(encodedNames[i]) buffer.writeByte('='.code) buffer.writeUtf8(encodedValues[i]) } if (countBytes) { byteCount = buffer.size buffer.clear() }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 09 12:33:05 UTC 2024 - 4.3K bytes - Viewed (0)