XXHash

Implementation of XXHash digester.

XXHash is an extremely fast non-cryptographic hash algorithm, which offers excellent distribution, especially for small keys and values. It is designed for speed and efficiency on both little-endian and big-endian machines.

static
@digester
class XXHash {}

Members

Static functions

hash
ubyte[] hash(ubyte[] data)

Computes the XXHash digest of the given data.

Examples

import tern.digest.xxhash;

ubyte[] data = [1, 2, 3, 4, 5];
auto hashValue = XXHash.hash(data);

Meta