- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 32 for HashFunction (0.06 sec)
-
android/guava-tests/benchmark/com/google/common/hash/HashFunctionBenchmark.java
} @Benchmark int hasher(int reps) { HashFunction hashFunction = hashFunctionEnum.getHashFunction(); int result = 37; for (int i = 0; i < reps; i++) { result ^= hashFunction.newHasher().putBytes(testBytes).hash().asBytes()[0]; } return result; } @Benchmark int hashFunction(int reps) { HashFunction hashFunction = hashFunctionEnum.getHashFunction(); int result = 37;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/HashingTest.java
if (shouldHaveKnownHashes(method)) { HashFunction hashFunction = (HashFunction) method.invoke(Hashing.class); assertTrue( "There should be at least 3 entries in KNOWN_HASHES for " + hashFunction, KNOWN_HASHES.row(hashFunction).size() >= 3); } } } public void testKnownUtf8Hashing() { for (Cell<HashFunction, String, String> cell : KNOWN_HASHES.cellSet()) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 26.4K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/HashingOutputStream.java
// be (optionally) be combined with another if needed (with something like // MultiplexingOutputStream). public HashingOutputStream(HashFunction hashFunction, OutputStream out) { super(checkNotNull(out)); this.hasher = checkNotNull(hashFunction.newHasher()); } @Override public void write(int b) throws IOException { hasher.putByte((byte) b); out.write(b); } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 2.6K bytes - Viewed (0) -
guava/src/com/google/common/hash/Murmur3_32HashFunction.java
final class Murmur3_32HashFunction extends AbstractHashFunction implements Serializable { static final HashFunction MURMUR3_32 = new Murmur3_32HashFunction(0, /* supplementaryPlaneFix= */ false); static final HashFunction MURMUR3_32_FIXED = new Murmur3_32HashFunction(0, /* supplementaryPlaneFix= */ true);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 16:36:11 UTC 2025 - 11.8K bytes - Viewed (0) -
guava/src/com/google/common/hash/HashingOutputStream.java
// be (optionally) be combined with another if needed (with something like // MultiplexingOutputStream). public HashingOutputStream(HashFunction hashFunction, OutputStream out) { super(checkNotNull(out)); this.hasher = checkNotNull(hashFunction.newHasher()); } @Override public void write(int b) throws IOException { hasher.putByte((byte) b); out.write(b); } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 2.6K bytes - Viewed (0) -
guava/src/com/google/common/hash/HashingInputStream.java
* Creates an input stream that hashes using the given {@link HashFunction} and delegates all data * read from it to the underlying {@link InputStream}. * * <p>The {@link InputStream} should not be read from before or after the hand-off. */ public HashingInputStream(HashFunction hashFunction, InputStream in) { super(checkNotNull(in)); this.hasher = checkNotNull(hashFunction.newHasher()); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 2.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
// From http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Mac private static final ImmutableTable<String, SecretKey, HashFunction> ALGORITHMS = new ImmutableTable.Builder<String, SecretKey, HashFunction>() .put("HmacMD5", MD5_KEY, Hashing.hmacMd5(MD5_KEY)) .put("HmacSHA1", SHA1_KEY, Hashing.hmacSha1(SHA1_KEY))
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Dec 27 16:19:35 UTC 2024 - 13.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/SipHashFunctionTest.java
// k = 00 01 02 ... private static final long K0 = 0x0706050403020100L; private static final long K1 = 0x0f0e0d0c0b0a0908L; private static final HashFunction SIP_WITH_KEY = Hashing.sipHash24(K0, K1); private static final HashFunction SIP_WITHOUT_KEY = Hashing.sipHash24(); // These constants were originally ported from https://www.131002.net/siphash/siphash24.c. See:
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 6.7K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/SipHashFunction.java
import java.nio.ByteBuffer; import org.jspecify.annotations.Nullable; /** * {@link HashFunction} implementation of SipHash-c-d. * * @author Kurt Alfred Kluever * @author Jean-Philippe Aumasson * @author Daniel J. Bernstein */ @Immutable final class SipHashFunction extends AbstractHashFunction implements Serializable { static final HashFunction SIP_HASH_24 = new SipHashFunction(2, 4, 0x0706050403020100L, 0x0f0e0d0c0b0a0908L);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 5.3K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java
@SuppressWarnings("IdentifierName") // the best we could do for adjacent digit blocks final class Murmur3_128HashFunction extends AbstractHashFunction implements Serializable { static final HashFunction MURMUR3_128 = new Murmur3_128HashFunction(0); static final HashFunction GOOD_FAST_HASH_128 = new Murmur3_128HashFunction(Hashing.GOOD_FAST_HASH_SEED); // TODO(user): when the shortcuts are implemented, update BloomFilterStrategies
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 16:36:11 UTC 2025 - 5.8K bytes - Viewed (0)