Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for delta (0.14 sec)

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

      }
    
      /** Returns a new bias. */
      private fun adapt(
        delta: Int,
        numpoints: Int,
        first: Boolean,
      ): Int {
        var delta =
          when {
            first -> delta / DAMP
            else -> delta / 2
          }
        delta += (delta / numpoints)
        var k = 0
        while (delta > ((BASE - TMIN) * TMAX) / 2) {
          delta /= (BASE - TMIN)
          k += BASE
        }
    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/test/java/okhttp3/CacheCorruptionTest.kt

      }
    
      /**
       * @param delta the offset from the current date to use. Negative values yield dates in the past;
       *     positive values yield dates in the future.
       */
      private fun formatDate(
        delta: Long,
        timeUnit: TimeUnit,
      ): String? {
        return formatDate(Date(System.currentTimeMillis() + timeUnit.toMillis(delta)))
      }
    
      private fun formatDate(date: Date): String? {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 6K bytes
    - Viewed (1)
  3. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

          in 64..79 -> {
            // Mapped inline as codePoint delta to subtract
            val b2 = ranges[rangesIndex + 2].code
            val b3 = ranges[rangesIndex + 3].code
    
            val codepointDelta = (b1 and 0xF shl 14) or (b2 shl 7) or b3
            sink.writeUtf8CodePoint(codePoint - codepointDelta)
          }
          in 80..95 -> {
            // Mapped inline as codePoint delta to add
            val b2 = ranges[rangesIndex + 2].code
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

            "run again after ${formatDuration(executeNanoTime - now)}"
          } else {
            "scheduled after ${formatDuration(executeNanoTime - now)}"
          }
        }
    
        // Insert in chronological order. Always compare deltas because nanoTime() is permitted to wrap.
        var insertAt = futureTasks.indexOfFirst { it.nextExecuteNanoTime - now > delayNanos }
        if (insertAt == -1) insertAt = futureTasks.size
        futureTasks.add(insertAt, task)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.5K bytes
    - Viewed (0)
Back to top