hashCombine

fnsize_t hashCombine(size_t seed, const(ubyte)[] data) pure nothrow @nogc @safe

Combines a hash seed with raw bytes using a polynomial rolling hash.

This is used by key types to compute toHash() over their encoded or component representations. Callers should start with a seed of 0 and chain multiple calls for multi-field hashing.

Parameters

seedThe starting hash value.
dataThe bytes to fold into the hash.

Returns

The updated hash value.