- Sort Score
- Num 10 results
- Language All
Results 31 - 39 of 39 for HashFunction (0.42 seconds)
-
android/guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java
break; case NOT_AT_ALL: } if (indexToDifferAt != -1) { testBytesA[indexToDifferAt] = (byte) (testBytesB[indexToDifferAt] - 1); } } @Benchmark boolean hashFunction(int reps) { boolean result = true; for (int i = 0; i < reps; i++) { result ^= equalsImpl.doEquals(testBytesA, testBytesB); } return result; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 4K bytes - Click Count (0) -
android/guava/src/com/google/common/io/ByteSource.java
* * @throws IOException if an I/O error occurs while reading from this source */ public HashCode hash(HashFunction hashFunction) throws IOException { Hasher hasher = hashFunction.newHasher(); copyTo(Funnels.asOutputStream(hasher)); return hasher.hash(); } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 08 18:35:13 GMT 2025 - 25.7K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/MessageDigestHashFunction.java
import java.io.ObjectInputStream; import java.io.Serializable; import java.nio.ByteBuffer; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Arrays; /** * {@link HashFunction} adapter for {@link MessageDigest} instances. * * @author Kevin Bourrillion * @author Dimitris Andreou */ @Immutable final class MessageDigestHashFunction extends AbstractHashFunction implements Serializable {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 4.9K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java
break; case NOT_AT_ALL: } if (indexToDifferAt != -1) { testBytesA[indexToDifferAt] = (byte) (testBytesB[indexToDifferAt] - 1); } } @Benchmark boolean hashFunction(int reps) { boolean result = true; for (int i = 0; i < reps; i++) { result ^= equalsImpl.doEquals(testBytesA, testBytesB); } return result; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 4K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/AbstractNonStreamingHashFunction.java
import com.google.errorprone.annotations.Immutable; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.charset.Charset; /** * Skeleton implementation of {@link HashFunction}, appropriate for non-streaming algorithms. All * the hash computation done using {@linkplain #newHasher()} are delegated to the {@linkplain * #hashBytes(byte[], int, int)} method. * * @author Dimitris Andreou */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 04 15:39:10 GMT 2025 - 4.8K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/FarmHashFingerprint64.java
* <li>shifting (right shift must be unsigned) * </ul> * * @author Kyle Maddison * @author Geoff Pike */ final class FarmHashFingerprint64 extends AbstractNonStreamingHashFunction { static final HashFunction FARMHASH_FINGERPRINT_64 = new FarmHashFingerprint64(); // Some primes between 2^63 and 2^64 for various uses. private static final long K0 = 0xc3a5c85c97cb3127L; private static final long K1 = 0xb492b66fbe98f273L;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 7.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java
/** * Unit test for FarmHashFingerprint64. * * @author Kyle Maddison * @author Geoff Pike */ @NullUnmarked public class FarmHashFingerprint64Test extends TestCase { private static final HashFunction HASH_FN = farmHashFingerprint64(); // If this test fails, all bets are off @SuppressWarnings("InlineMeInliner") // String.repeat unavailable under Java 8 public void testReallySimpleFingerprints() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 6.4K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/Fingerprint2011.java
* </ul> * * @author ******@****.*** (Kyle Maddison) * @author ******@****.*** (Geoff Pike) */ final class Fingerprint2011 extends AbstractNonStreamingHashFunction { static final HashFunction FINGERPRINT_2011 = new Fingerprint2011(); // Some primes between 2^63 and 2^64 for various uses. private static final long K0 = 0xa5b85c5e198ed849L; private static final long K1 = 0x8d58ac26afe12e47L;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 6.5K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/Crc32cHashFunction.java
* polynomial for this checksum is {@code 0x11EDC6F41}. * * @author Kurt Alfred Kluever */ @Immutable final class Crc32cHashFunction extends AbstractHashFunction { static final HashFunction CRC_32_C = new Crc32cHashFunction(); @Override public int bits() { return 32; } @Override public Hasher newHasher() { return new Crc32cHasher(); } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 28 01:26:26 GMT 2024 - 21.2K bytes - Click Count (0)