Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for length (0.25 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbFile.java

                char[] in = url.getPath().toCharArray();
                char[] out = new char[in.length];
                int length = in.length, i, o, state, s;
    
                                  /* The canonicalization routine
                                   */
                state = 0;
                o = 0;
                for( i = 0; i < length; i++ ) {
                    switch( state ) {
                        case 0:
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 107.9K bytes
    - Viewed (2)
  2. guava-tests/test/com/google/common/cache/LocalCacheTest.java

                    .maximumSize(maxSize));
        long totalCapacity = 0;
        assertTrue(
            "segments=" + map.segments.length + ", maxSize=" + maxSize,
            map.segments.length <= Math.max(1, maxSize / 10));
        for (int i = 0; i < map.segments.length; i++) {
          totalCapacity += map.segments[i].maxSegmentWeight;
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

                    .maximumSize(maxSize));
        long totalCapacity = 0;
        assertTrue(
            "segments=" + map.segments.length + ", maxSize=" + maxSize,
            map.segments.length <= Math.max(1, maxSize / 10));
        for (int i = 0; i < map.segments.length; i++) {
          totalCapacity += map.segments[i].maxSegmentWeight;
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CallTest.kt

        assertThat(recordedRequest.body.size).isEqualTo(0)
        assertThat(recordedRequest.headers["Content-Length"]).isNull()
      }
    
      @Test
      fun headResponseContentLengthIsIgnored() {
        server.enqueue(
          MockResponse.Builder()
            .clearHeaders()
            .addHeader("Content-Length", "100")
            .build(),
        )
        server.enqueue(
          MockResponse(body = "abc"),
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

      @Test
      fun fixedLengthUpload_byteByByte() {
        doUpload(TransferKind.FIXED_LENGTH, WriteKind.BYTE_BY_BYTE)
      }
    
      @Test
      fun fixedLengthUpload_smallBuffers() {
        doUpload(TransferKind.FIXED_LENGTH, WriteKind.SMALL_BUFFERS)
      }
    
      @Test
      fun fixedLengthUpload_largeBuffers() {
        doUpload(TransferKind.FIXED_LENGTH, WriteKind.LARGE_BUFFERS)
      }
    
      private fun doUpload(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

        // have at least one matching character).
        int threshold = ((percent * length) + 99) / 100;
        StringBuilder builder = new StringBuilder(length);
        for (int n = 0; n < length; n++) {
          builder.append(
              randomCharFrom(list.get(n) >= threshold ? NONMATCHING_CHARS : matchingChars, rand));
        }
        return builder.toString();
      }
    
      private static char randomCharFrom(String s, Random rand) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CacheTest.kt

        val response1 = client.newCall(request).execute()
        val in1 = response1.body.source()
        assertThat(in1.readUtf8("I love ".length.toLong())).isEqualTo("I love ")
        in1.skip("puppies but hate ".length.toLong())
        assertThat(in1.readUtf8("spiders".length.toLong())).isEqualTo("spiders")
        assertThat(in1.exhausted()).isTrue()
        in1.close()
        assertThat(cache.writeSuccessCount()).isEqualTo(1)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/LocalCache.java

          try {
            if (count != 0) { // read-volatile
              long now = map.ticker.read();
              AtomicReferenceArray<ReferenceEntry<K, V>> table = this.table;
              int length = table.length();
              for (int i = 0; i < length; ++i) {
                for (ReferenceEntry<K, V> e = table.get(i); e != null; e = e.getNext()) {
                  V entryValue = getLiveValue(e, now);
                  if (entryValue == null) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/LocalCache.java

          try {
            if (count != 0) { // read-volatile
              long now = map.ticker.read();
              AtomicReferenceArray<ReferenceEntry<K, V>> table = this.table;
              int length = table.length();
              for (int i = 0; i < length; ++i) {
                for (ReferenceEntry<K, V> e = table.get(i); e != null; e = e.getNext()) {
                  V entryValue = getLiveValue(e, now);
                  if (entryValue == null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  10. src/main/webapp/js/bootstrap.min.js.map

    this._getItemIndex(activeElement)\n    const lastItemIndex   = this._items.length - 1\n    const isGoingToWrap   = isPrevDirection && activeIndex === 0 ||\n                            isNextDirection && activeIndex === lastItemIndex\n\n    if (isGoingToWrap && !this._config.wrap) {\n      return activeElement\n    }\n\n    const delta     = direction === Direction.PREV ? -1 : 1\n    const itemIndex = (activeIndex + delta) % this._items.length\n\n    return itemIndex === -1\n      ? this._items[this._items.length...
    Plain Text
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Sat Jan 11 06:54:28 GMT 2020
    - 189.9K bytes
    - Viewed (0)
Back to top