Skip to content

xxh3_128

xxh3_128(data, seed?): Uint8Array<ArrayBuffer>

Defined in: hash/xxh3_128.ts:19

Computes the XXH3-128 hash of data (Yann Collet, xxHash specification v0.2.0).

More mixing than xxh3_64 for a small overhead on short inputs; the low 64 bits of the result always equal xxh3_64’s own output for the same data and seed.

Complexity: O(n) in the byte length of data.

Uint8Array

The bytes to hash.

bigint = 0n

The 64-bit seed, defaulting to 0n.

Uint8Array<ArrayBuffer>

A 16-byte digest, two little-endian 64-bit words (low half first).