Skip to main content

xxh3_64

Function xxh3_64 

Source
pub const fn xxh3_64(data: &[u8]) -> u64
Expand description

Compute the XXH3 64-bit hash of data in a single call.

Available as a const fn for compile-time hashing. Uses seed=0 and the default XXH3 secret.

ยงExample

use xxhash::xxh3_64;

let hash: u64 = xxh3_64(b"hello");
assert_eq!(hash, 0x9555E8555C62DCFD);