Luna::memhash32

u32 memhash32(const void *data, usize size, u32 h=0)

A specialization of memhash that computes 32-bit hash code.

Parameters

  • in data

    A pointer to the data to be hashed.

  • in size

    The length of the data in bytes.

  • in h

    A initial hash value. See memhash for details.

Return value

Returns the hash code of the data.