XXHash64

xxHash-64, based on Yann Collet's descriptions

How to use:

ulong myseed = 0; XXHash64 myhash(myseed); myhash.put(pointerToSomeBytes, numberOfBytes); myhash.put(pointerToSomeMoreBytes, numberOfMoreBytes); // call put() as often as you like to ...

and compute hash:

ulong result = myhash.hash();

or all of the above in one single line:

ulong result2 = XXHash64::hashOf(mypointer, numBytes, myseed);

Constructors

this
this(ulong seed)

Constructs XXHash64 with seed.

Members

Functions

finish
ubyte[8] finish()
finishUlong
ulong finishUlong()
put
void put(const(ubyte)[] data)

Use this to feed the hash with data.

start
void start()

(Re)initialize.

See Also

Meta