Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for increment (0.25 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

        var bias = INITIAL_BIAS
        var h = b
        while (h < input.size) {
          val m = input.minBy { if (it >= n) it else Int.MAX_VALUE }
    
          val increment = (m - n) * (h + 1)
          if (delta > Int.MAX_VALUE - increment) return false // Prevent overflow.
          delta += increment
    
          n = m
    
          for (c in input) {
            if (c < n) {
              if (delta == Int.MAX_VALUE) return false // Prevent overflow.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

      private fun readWindowUpdate(
        handler: Handler,
        length: Int,
        flags: Int,
        streamId: Int,
      ) {
        val increment: Long
        try {
          if (length != 4) throw IOException("TYPE_WINDOW_UPDATE length !=4: $length")
          increment = source.readInt() and 0x7fffffffL
          if (increment == 0L) throw IOException("windowSizeIncrement was 0")
        } catch (e: Exception) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Cache.kt

     * the response, the client will issue a conditional `GET`. The server will then send either
     * the updated response if it has changed, or a short 'not modified' response if the client's copy
     * is still valid. Such responses increment both the network count and hit count.
     *
     * The best way to improve the cache hit rate is by configuring the web server to return cacheable
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2.kt

          length,
          formattedType,
          formattedFlags,
        )
      }
    
      /**
       * Returns a human-readable representation of a `WINDOW_UPDATE` frame. This frame includes the
       * window size increment instead of flags.
       */
      fun frameLogWindowUpdate(
        inbound: Boolean,
        streamId: Int,
        length: Int,
        windowSizeIncrement: Long,
      ): String {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  5. gradle.properties

    org.gradle.caching=true
    org.gradle.jvmargs='-Dfile.encoding=UTF-8'
    org.gradle.parallel=true
    android.enableJetifier=true
    android.useAndroidX=true
    kotlin.mpp.stability.nowarn=true
    kotlin.js.compiler=ir
    kotlin.incremental.js.ir=true
    androidBuild=false
    graalBuild=false
    loomBuild=false
    containerTests=false
    Properties
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 09:58:21 GMT 2024
    - 343 bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

                  // Indexed Header Field.
                  writeInt(headerIndex, PREFIX_7_BITS, 0x80)
                }
                headerNameIndex == -1 -> {
                  // Literal Header Field with Incremental Indexing - New Name.
                  out.writeByte(0x40)
                  writeByteString(name)
                  writeByteString(value)
                  insertIntoDynamicTable(header)
                }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (1)
  7. .github/workflows/build.yml

          - master
      pull_request:
        types: [opened, labeled, unlabeled, synchronize]
    
    permissions:
      contents: read
    
    env:
      GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
    
    jobs:
      publish:
        runs-on: ubuntu-latest
        if: github.repository == 'square/okhttp' && github.ref == 'refs/heads/master'
    
        steps:
          - name: Checkout
            uses: actions/checkout@v4
    
    Others
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 01:51:50 GMT 2024
    - 17.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

        val relay = edit(file, upstream, metadata, 1024)
        val source1 = relay.newSource()
        val source2 = relay.newSource()
        source1!!.close()
        source1.close() // Unnecessary. Shouldn't decrement the reference count.
        assertThat(relay.isClosed).isFalse()
        source2!!.close()
        assertThat(relay.isClosed).isTrue()
        assertFile(Relay.PREFIX_DIRTY, -1L, -1, null, null)
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  9. .github/workflows/docs.yml

          - master
      pull_request:
        types: [opened, labeled, unlabeled, synchronize]
    
    permissions:
      contents: read
    
    env:
      GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
    
    jobs:
      test_docs:
        permissions:
          checks: write # for actions/upload-artifact
        runs-on: ubuntu-latest
    Others
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Mar 04 06:13:36 GMT 2024
    - 1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

    @Suppress("UNCHECKED_CAST")
    internal fun Array<String>.concat(value: String): Array<String> {
      val result = copyOf(size + 1)
      result[result.lastIndex] = value
      return result as Array<String>
    }
    
    /** Increments [startIndex] until this string is not ASCII whitespace. Stops at [endIndex]. */
    internal fun String.indexOfFirstNonAsciiWhitespace(
      startIndex: Int = 0,
      endIndex: Int = length,
    ): Int {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
Back to top