FNV

Template API FNV-1(a) hash implementation.

struct FNV (
ulong bitLength
bool fnv1a = false
) {}

Members

Functions

finish
ubyte[bitLength / 8] finish()

Returns the finished FNV digest. This also calls start to reset the internal state.

put
void put(const(ubyte)[] data)

Feeds the digest with data.

start
void start()

Initializes the digest calculation.

Meta