- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 38 for hashBytes (0.18 seconds)
-
guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java
return md.digest(); } }, HASH_FUNCTION_DIRECT() { @Override public byte[] hash(Algorithm algorithm, byte[] input) { return algorithm.getHashFunction().hashBytes(input).asBytes(); } }, HASH_FUNCTION_VIA_HASHER() { @Override public byte[] hash(Algorithm algorithm, byte[] input) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 3.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/Murmur3Hash128Test.java
HashCode expected = toHashCode(expected1, expected2); byte[] input = HashTestUtils.ascii(stringInput); assertEquals(expected, murmur3_128(seed).hashBytes(input)); assertEquals(expected, murmur3_128(seed).newHasher().putBytes(input).hash()); } /** Returns a {@link HashCode} for a sequence of longs, in big-endian order. */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 3.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/HashCodeTest.java
assertThat(hashCode.bits()).isAtLeast(32); // sanity byte[] hashBytes = hashCode.asBytes(); int totalBytes = hashCode.bits() / 8; for (int bytes = 0; bytes < totalBytes; bytes++) { byte[] bb = new byte[bytes]; hashCode.writeBytesTo(bb, 0, bb.length); assertThat(bb).isEqualTo(Arrays.copyOf(hashBytes, bytes)); } } private static class ExpectedHashCode {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 13.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ByteSourceTester.java
return out.toByteArray(); } }); assertExpectedBytes(readBytes); } public void testHash() throws IOException { HashCode expectedHash = sha512().hashBytes(expected); assertEquals(expectedHash, source.hash(sha512())); } public void testSlice_illegalArguments() { assertThrows(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 8.6K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/FarmHashFingerprint64.java
private static final long K0 = 0xc3a5c85c97cb3127L; private static final long K1 = 0xb492b66fbe98f273L; private static final long K2 = 0x9ae16a3b2f90404fL; @Override public HashCode hashBytes(byte[] input, int off, int len) { checkPositionIndexes(off, off + len, input.length); return HashCode.fromLong(fingerprint(input, off, len)); } @Override public int bits() { return 64; }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) -
internal/event/target/elasticsearch.go
if target.client.isAtleastV7() { hh, _ := highwayhash.New(magicHighwayHash256Key) // New will never return error since key is 256 bit hh.Write([]byte(key)) hashBytes := hh.Sum(nil) keyHash = base64.URLEncoding.EncodeToString(hashBytes) } else { keyHash = key } } if eventData.EventName == event.ObjectRemovedDelete { err = target.client.removeEntry(ctx, target.args.Index, keyHash)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 15K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/ByteSourceTester.java
return out.toByteArray(); } }); assertExpectedBytes(readBytes); } public void testHash() throws IOException { HashCode expectedHash = sha512().hashBytes(expected); assertEquals(expectedHash, source.hash(sha512())); } public void testSlice_illegalArguments() { assertThrows(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 8.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
} } // Assumes that AbstractNonStreamingHashFunction works properly (must be tested elsewhere!) private static class Control extends AbstractNonStreamingHashFunction { @Override public HashCode hashBytes(byte[] input, int off, int len) { return HashCode.fromBytes(Arrays.copyOfRange(input, off, off + len)); } @Override public int bits() { throw new UnsupportedOperationException(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 18:19:59 GMT 2025 - 8.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java
* * @param expectedCrc the expected crc value. * @param data the data to run the checksum on. */ private static void assertCrc(int expectedCrc, byte[] data) { int actualCrc = crc32c().hashBytes(data).asInt(); assertEquals( String.format("expected: %08x, actual: %08x", expectedCrc, actualCrc), expectedCrc, actualCrc);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 6.6K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/Fingerprint2011.java
private static final long K1 = 0x8d58ac26afe12e47L; private static final long K2 = 0xc47b6e9e3a970ed3L; private static final long K3 = 0xc6a4a7935bd1e995L; @Override public HashCode hashBytes(byte[] input, int off, int len) { checkPositionIndexes(off, off + len, input.length); return HashCode.fromLong(fingerprint(input, off, len)); } @Override public int bits() { return 64; }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)