Hashing functions
Functions
-
_HashTy memhash(const void *data, usize size, _HashTy h=0)
Computes a hash code for the specified binary data.
-
u8 memhash8(const void *data, usize size, u8 h=0)
A specialization of memhash that computes 8-bit hash code.
-
u16 memhash16(const void *data, usize size, u16 h=0)
A specialization of memhash that computes 16-bit hash code.
-
u32 memhash32(const void *data, usize size, u32 h=0)
A specialization of memhash that computes 32-bit hash code.
-
u64 memhash64(const void *data, usize size, u64 h=0)
A specialization of memhash that computes 64-bit hash code.
-
constexpr _HashTy strhash(const c8 *s, _HashTy h=0)
Computes a hash code for the specified string.
-
constexpr u8 strhash8(const c8 *s, u8 h=0)
A specialization of strhash that computes 8-bit hash code.
-
constexpr u16 strhash16(const c8 *s, u16 h=0)
A specialization of strhash that computes 16-bit hash code.
-
constexpr u32 strhash32(const c8 *s, u32 h=0)
A specialization of strhash that computes 32-bit hash code.
-
constexpr u64 strhash64(const c8 *s, u64 h=0)
A specialization of strhash that computes 64-bit hash code.