pub const fn xxh3_64(data: &[u8]) -> u64Expand description
Compute the XXH3 64-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_64::checksum to benefit from
SIMD acceleration at runtime. Both produce identical results.
ยงExample
use xxhash::xxh3_64;
let hash: u64 = xxh3_64(b"hello");
assert_eq!(hash, 0x9555E8555C62DCFD);