Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for endIndex (0.35 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

    internal fun String.indexOfFirstNonAsciiWhitespace(
      startIndex: Int = 0,
      endIndex: Int = length,
    ): Int {
      for (i in startIndex until endIndex) {
        when (this[i]) {
          '\t', '\n', '\u000C', '\r', ' ' -> Unit
          else -> return i
        }
      }
      return endIndex
    }
    
    /**
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_interval_test.go

    }
    
    func TestIntervalBufferIsFull(t *testing.T) {
    	cases := []struct {
    		endIndex int
    		expected bool
    	}{
    		{endIndex: bufferSize - 1, expected: false},
    		{endIndex: bufferSize, expected: true},
    		{endIndex: bufferSize + 1, expected: true},
    	}
    
    	for _, c := range cases {
    		wcib := &watchCacheIntervalBuffer{endIndex: c.endIndex}
    		actual := wcib.isFull()
    		if actual != c.expected {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go

    	// cache is used a cyclic buffer - the "current" contents of it are
    	// stored in [start_index%capacity, end_index%capacity) - so the
    	// "current" contents have exactly end_index-start_index items.
    	cache      []*watchCacheEvent
    	startIndex int
    	endIndex   int
    	// removedEventSinceRelist holds the information whether any of the events
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 10:20:57 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/main/java/org/gradle/internal/featurelifecycle/LoggingDeprecatedFeatureHandler.java

            final String lineSeparator = SystemProperties.getInstance().getLineSeparator();
    
            int endIndex = Math.min(stack.size(), endIndexExclusive);
            if (isTraceLoggingEnabled()) {
                // append full stack trace
                for (int i = startIndexInclusive; i < endIndex; ++i) {
                    StackTraceElement frame = stack.get(i);
                    appendStackTraceElement(frame, message, lineSeparator);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. src/strconv/ftoaryu.go

    		central++
    	}
    	// We know where the number ends, fill directly
    	endindex -= trimmed
    	v := central
    	n := endindex
    	for n > d.nd {
    		v1, v2 := v/100, v%100
    		d.d[n] = smallsString[2*v2+1]
    		d.d[n-1] = smallsString[2*v2+0]
    		n -= 2
    		v = v1
    	}
    	if n == d.nd {
    		d.d[n] = byte(v + '0')
    	}
    	d.nd = endindex + 1
    	d.dp = d.nd + trimmed
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 00:28:56 UTC 2022
    - 15.7K bytes
    - Viewed (0)
  6. helm/minio/templates/statefulset.yaml

                "-ce",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 26 07:50:24 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

       * end).trimmed()}.
       */
      public ImmutableLongArray subArray(int startIndex, int endIndex) {
        Preconditions.checkPositionIndexes(startIndex, endIndex, length());
        return startIndex == endIndex
            ? EMPTY
            : new ImmutableLongArray(array, start + startIndex, start + endIndex);
      }
    
      /**
       * Returns an immutable <i>view</i> of this array's values as a {@code List}; note that {@code
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 16:34:24 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

       * end).trimmed()}.
       */
      public ImmutableDoubleArray subArray(int startIndex, int endIndex) {
        Preconditions.checkPositionIndexes(startIndex, endIndex, length());
        return startIndex == endIndex
            ? EMPTY
            : new ImmutableDoubleArray(array, start + startIndex, start + endIndex);
      }
    
      /**
       * Returns an immutable <i>view</i> of this array's values as a {@code List}; note that {@code
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 16:34:24 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

       * end).trimmed()}.
       */
      public ImmutableIntArray subArray(int startIndex, int endIndex) {
        Preconditions.checkPositionIndexes(startIndex, endIndex, length());
        return startIndex == endIndex
            ? EMPTY
            : new ImmutableIntArray(array, start + startIndex, start + endIndex);
      }
    
      /**
       * Returns an immutable <i>view</i> of this array's values as a {@code List}; note that {@code
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 16:34:24 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go

    			}
    
    			// check cache's startIndex, endIndex and all elements.
    			if store.startIndex != test.expectStartIndex {
    				t.Errorf("expect startIndex %d, but get %d", test.expectStartIndex, store.startIndex)
    			}
    			if store.endIndex != test.startIndex+test.eventCount {
    				t.Errorf("expect endIndex %d get %d", test.startIndex+test.eventCount, store.endIndex)
    			}
    			if !checkCacheElements(store) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 35.4K bytes
    - Viewed (0)
Back to top