Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 251 for downTo (0.14 seconds)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

          val lengthBitCount = 64 - java.lang.Long.numberOfLeadingZeros(length)
          val lengthByteCount = (lengthBitCount + 7) / 8
          sink.writeByte(0b1000_0000 or lengthByteCount)
          for (shift in (lengthByteCount - 1) * 8 downTo 0 step 8) {
            sink.writeByte((length shr shift).toInt())
          }
        }
    
        // Write the payload.
        sink.writeAll(content)
      }
    
      /**
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HeadersCommon.kt

          append("\n")
        }
      }
    
    internal fun commonHeadersGet(
      namesAndValues: Array<String>,
      name: String,
    ): String? {
      for (i in namesAndValues.size - 2 downTo 0 step 2) {
        if (name.equals(namesAndValues[i], ignoreCase = true)) {
          return namesAndValues[i + 1]
        }
      }
      return null
    }
    
    internal fun Headers.Builder.commonAdd(
      name: String,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 6K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

        this.withLock {
          return busyQueues + readyQueues
        }
      }
    
      fun cancelAll() {
        assertLockHeld()
        for (i in busyQueues.size - 1 downTo 0) {
          busyQueues[i].cancelAllAndDecide()
        }
        for (i in readyQueues.size - 1 downTo 0) {
          val queue = readyQueues[i]
          queue.cancelAllAndDecide()
          if (queue.futureTasks.isEmpty()) {
            readyQueues.removeAt(i)
          }
        }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Aug 30 11:30:11 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

      internal fun cancelAllAndDecide(): Boolean {
        if (activeTask != null && activeTask!!.cancelable) {
          cancelActiveTask = true
        }
    
        var tasksCanceled = false
        for (i in futureTasks.size - 1 downTo 0) {
          if (futureTasks[i].cancelable) {
            taskRunner.logger.taskLog(futureTasks[i], this) { "canceled" }
            tasksCanceled = true
            futureTasks.removeAt(i)
          }
        }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed May 28 23:28:25 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/GeneralRange.java

      }
    
      /**
       * Returns everything above the endpoint relative to the specified comparator, with the specified
       * endpoint behavior.
       */
      static <T extends @Nullable Object> GeneralRange<T> downTo(
          Comparator<? super T> comparator, @ParametricNullness T endpoint, BoundType boundType) {
        return new GeneralRange<>(comparator, true, endpoint, boundType, false, null, OPEN);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt

     */
    internal fun String.indexOfLastNonAsciiWhitespace(
      startIndex: Int = 0,
      endIndex: Int = length,
    ): Int {
      for (i in endIndex - 1 downTo startIndex) {
        when (this[i]) {
          '\t', '\n', '\u000C', '\r', ' ' -> Unit
          else -> return i + 1
        }
      }
      return startIndex
    }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon May 05 16:01:00 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/GeneralRange.java

      }
    
      /**
       * Returns everything above the endpoint relative to the specified comparator, with the specified
       * endpoint behavior.
       */
      static <T extends @Nullable Object> GeneralRange<T> downTo(
          Comparator<? super T> comparator, @ParametricNullness T endpoint, BoundType boundType) {
        return new GeneralRange<>(comparator, true, endpoint, boundType, false, null, OPEN);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/Range.java

      /**
       * Returns a range from the given endpoint, which may be either inclusive (closed) or exclusive
       * (open), with no upper bound.
       *
       * @since 14.0
       */
      public static <C extends Comparable<?>> Range<C> downTo(C endpoint, BoundType boundType) {
        switch (boundType) {
          case OPEN:
            return greaterThan(endpoint);
          case CLOSED:
            return atLeast(endpoint);
        }
        throw new AssertionError();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 28.3K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/Range.java

      /**
       * Returns a range from the given endpoint, which may be either inclusive (closed) or exclusive
       * (open), with no upper bound.
       *
       * @since 14.0
       */
      public static <C extends Comparable<?>> Range<C> downTo(C endpoint, BoundType boundType) {
        switch (boundType) {
          case OPEN:
            return greaterThan(endpoint);
          case CLOSED:
            return atLeast(endpoint);
        }
        throw new AssertionError();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 28K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/collect/GeneralRangeTest.java

              GeneralRange.upTo(Ordering.natural(), 3, endpointType),
              GeneralRange.from(Range.upTo(3, endpointType)));
    
          assertEquals(
              GeneralRange.downTo(Ordering.natural(), 3, endpointType),
              GeneralRange.from(Range.downTo(3, endpointType)));
        }
      }
    
      public void testFromRangeTwoEnds() {
        for (BoundType lowerType : BoundType.values()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.4K bytes
    - Click Count (0)
Back to Top