pub const fn xxh3_128(data: &[u8]) -> u128Expand description
Compute the XXH3 128-bit hash of data in a single call.
Available as a const fn for compile-time hashing, using seed=0 and the
default XXH3 secret. For inputs longer than 240 bytes the const path is
scalar only; use Xxh3_128::checksum to benefit from
SIMD acceleration at runtime. Both produce identical results.
ยงExample
use xxhash::xxh3_128;
let hash: u128 = xxh3_128(b"hello");
assert_eq!(hash, 0xB5E9C1AD071B3E7FC779CFAA5E523818);