Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for writeHexadecimalUnsignedLong (0.33 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

        override fun write(
          source: Buffer,
          byteCount: Long,
        ) {
          check(!closed) { "closed" }
          if (byteCount == 0L) return
    
          with(socket.sink) {
            writeHexadecimalUnsignedLong(byteCount)
            writeUtf8("\r\n")
            write(source, byteCount)
            writeUtf8("\r\n")
          }
        }
    
        @Synchronized
        override fun flush() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

            headers_.add("Transfer-encoding: chunked")
    
            val bytesOut = Buffer()
            while (!body.exhausted()) {
              val chunkSize = minOf(body.size, maxChunkSize.toLong())
              bytesOut.writeHexadecimalUnsignedLong(chunkSize)
              bytesOut.writeUtf8("\r\n")
              bytesOut.write(body, chunkSize)
              bytesOut.writeUtf8("\r\n")
            }
            bytesOut.writeUtf8("0\r\n") // Last chunk. Trailers follow!
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 17.8K bytes
    - Viewed (0)
Back to top