Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for minOf (0.15 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

        requestHeaders: List<Header>,
      ) {
        this.withLock {
          if (closed) throw IOException("closed")
          hpackWriter.writeHeaders(requestHeaders)
    
          val byteCount = hpackBuffer.size
          val length = minOf(maxFrameSize - 4L, byteCount).toInt()
          frameHeader(
            streamId = streamId,
            length = length + 4,
            type = TYPE_PUSH_PROMISE,
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt

    @Throws(IOException::class)
    fun Response.commonPeekBody(byteCount: Long): ResponseBody {
      val peeked = body.source().peek()
      val buffer = Buffer()
      peeked.request(byteCount)
      buffer.write(peeked, minOf(byteCount, peeked.buffer.size))
      return buffer.asResponseBody(body.contentType(), buffer.size)
    }
    
    fun Response.commonNewBuilder(): Response.Builder = Response.Builder(this)
    
    val Response.commonIsRedirect: Boolean
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

                } else if (readBuffer.size > 0L) {
                  // Prepare to read bytes. Start by moving them to the caller's buffer.
                  readBytesDelivered = readBuffer.read(sink, minOf(byteCount, readBuffer.size))
                  readBytes.update(total = readBytesDelivered)
    
                  val unacknowledgedBytesRead = readBytes.unacknowledged
                  if (errorExceptionToDeliver == null &&
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  4. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

            val candidateDelay = maxOf(0L, candidate.nextExecuteNanoTime - now)
    
            when {
              // Compute the delay of the soonest-executable task.
              candidateDelay > 0L -> {
                minDelayNanos = minOf(candidateDelay, minDelayNanos)
                continue@eachQueue
              }
    
              // If we already have more than one task, that's enough work for now. Stop searching.
              readyTask != null -> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

              Thread.currentThread().interrupt() // Retain interrupted status.
              throw InterruptedIOException()
            }
    
            toWrite = minOf(byteCount, writeBytesMaximum - writeBytesTotal).toInt()
            toWrite = minOf(toWrite, writer.maxDataLength())
            writeBytesTotal += toWrite.toLong()
          }
    
          byteCount -= toWrite.toLong()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

          val ageMillis = cacheResponseAge()
          var freshMillis = computeFreshnessLifetime()
    
          if (requestCaching.maxAgeSeconds != -1) {
            freshMillis = minOf(freshMillis, SECONDS.toMillis(requestCaching.maxAgeSeconds.toLong()))
          }
    
          var minFreshMillis: Long = 0
          if (requestCaching.minFreshSeconds != -1) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

                selection,
                additionalImports,
                classShortenStrategy = {
                    minOf(classShortenStrategy(buildSymbol(it) as KtClassLikeSymbol), ShortenStrategy.SHORTEN_IF_ALREADY_IMPORTED)
                },
                callableShortenStrategy = {
                    minOf(callableShortenStrategy(buildSymbol(it) as KtCallableSymbol), ShortenStrategy.SHORTEN_IF_ALREADY_IMPORTED)
                },
            )
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:51:33 GMT 2024
    - 69.5K bytes
    - Viewed (0)
  8. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

      ) : Sink {
        val buffer = Buffer()
        var receivedByteCount = 0L
    
        @Throws(IOException::class)
        override fun write(
          source: Buffer,
          byteCount: Long,
        ) {
          val toRead = minOf(remainingByteCount, byteCount)
          if (toRead > 0L) {
            source.read(buffer, toRead)
          }
          val toSkip = byteCount - toRead
          if (toSkip > 0L) {
            source.skip(toSkip)
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
Back to top