Search Options

Results per page
Sort
Preferred Languages
Advance

Results 741 - 750 of 6,596 for _return (0.11 sec)

  1. cmd/benchmark-utils_test.go

    	// seeding the random number generator.
    	rand.Seed(UTCNow().UnixNano())
    	// pick a character randomly.
    	return []byte{letterBytes[rand.Intn(len(letterBytes))]}
    }
    
    // picks a random byte and repeats it to size bytes.
    func generateBytesData(size int) []byte {
    	// repeat the random character chosen size
    	return bytes.Repeat(getRandomByte(), size)
    }
    
    // Parallel benchmark utility functions for ObjectLayer.PutObject().
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Dec 23 15:46:00 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/DenseImmutableTable.java

        // True if getValue never returns null.
        private boolean isFull() {
          return size == keyToIndex().size();
        }
    
        K getKey(int index) {
          return keyToIndex().keySet().asList().get(index);
        }
    
        @CheckForNull
        abstract V getValue(int keyIndex);
    
        @Override
        ImmutableSet<K> createKeySet() {
          return isFull() ? keyToIndex().keySet() : super.createKeySet();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  3. cmd/erasure-decode.go

    	}
    	wg.Wait()
    	if p.canDecode(newBuf) {
    		p.offset += p.shardSize
    		if missingPartsHeal == 1 {
    			return newBuf, errFileNotFound
    		} else if bitrotHeal == 1 {
    			return newBuf, errFileCorrupt
    		}
    		return newBuf, nil
    	}
    
    	// If we cannot decode, just return read quorum error.
    	return nil, fmt.Errorf("%w (offline-disks=%d/%d)", errErasureReadQuorum, disksNotFound, len(p.readers))
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java

            "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array));
        expectArrayContentsAnyOrder(createSamplesArray(), array);
      }
    
      @CollectionFeature.Require(KNOWN_ORDER)
      public void testToArray_rightSizedArray_ordered() {
        E[] array = getSubjectGenerator().createArray(getNumElements());
        assertSame(
            "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/MessageBuilderFactory.java

         * @return whether color styling is supported or not
         */
        boolean isColorEnabled();
    
        /**
         * Returns the terminal width or <code>-1</code> if not supported.
         * @return the terminal width
         */
        int getTerminalWidth();
    
        /**
         * Creates a new message builder.
         * @return a new message builder
         */
        @Nonnull
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Mon Jan 08 10:37:09 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/tls/CertificateChainCleaner.kt

        hostname: String,
      ): List<Certificate>
    
      companion object {
        fun get(trustManager: X509TrustManager): CertificateChainCleaner {
          return Platform.get().buildCertificateChainCleaner(trustManager)
        }
    
        fun get(vararg caCerts: X509Certificate): CertificateChainCleaner {
          return BasicCertificateChainCleaner(BasicTrustRootIndex(*caCerts))
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/LoadingCache.java

       * returned by {@link CacheLoader#loadAll} will be stored in the cache, over-writing any
       * previously cached values. This method will throw an exception if {@link CacheLoader#loadAll}
       * returns {@code null}, returns a map containing null keys or values, or fails to return an entry
       * for each requested key.
       *
       * <p>Note that duplicate elements in {@code keys}, as determined by {@link Object#equals}, will
       * be ignored.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Aug 06 17:12:03 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/AbstractMultimap.java

          return entryIterator();
        }
    
        @Override
        public Spliterator<Entry<K, V>> spliterator() {
          return entrySpliterator();
        }
      }
    
      @WeakOuter
      class EntrySet extends Entries implements Set<Entry<K, V>> {
        @Override
        public int hashCode() {
          return Sets.hashCodeImpl(this);
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 7.1K bytes
    - Viewed (0)
  9. cmd/object-api-input-checks.go

    	if len(object) == 0 {
    		return ObjectNameInvalid{Bucket: bucket, Object: object}
    	}
    	if !IsValidObjectPrefix(object) {
    		return ObjectNameInvalid{Bucket: bucket, Object: object}
    	}
    	if runtime.GOOS == globalWindowsOSName && strings.Contains(object, "\\") {
    		// Objects cannot be contain \ in Windows and is listed as `Characters to Avoid`.
    		return ObjectNameInvalid{Bucket: bucket, Object: object}
    	}
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvnenc/EncryptOptions.java

         *
         * @return an {@link Optional} containing the boolean value {@code true} if specified, or empty
         */
        Optional<Boolean> force();
    
        /**
         * Should imply "yes" to all questions.
         *
         * @return an {@link Optional} containing the boolean value {@code true} if specified, or empty
         */
        Optional<Boolean> yes();
    
        /**
         * Returns the list of encryption goals to be executed.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Mon Oct 14 19:57:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top