Namespaces | |
namespace | internal |
Typedefs | |
typedef unsigned int | Id |
Functions | |
template<size_t LENGTH> | |
constexpr uint32_t | static_fnv32 (const char(&chars)[LENGTH]) |
template<size_t LENGTH> | |
constexpr uint64_t | static_fnv64 (const char(&chars)[LENGTH]) |
template<size_t LENGTH> | |
constexpr unsigned | static_fnv (const char(&chars)[LENGTH]) |
template<size_t LENGTH> | |
uint32_t | fnv32 (const char(&chars)[LENGTH]) |
uint32_t | fnv32 (const std::string &s) |
typedef unsigned int basics::Id |
uint32_t basics::fnv32 | ( | const char(&) | chars[LENGTH] | ) |
|
inline |
|
constexpr |
|
constexpr |
Implements the Fowler–Noll–Vo hash function (FNV-1a) which calculates a 32 bit hash code from a C string literal (or array of chars) at compile time.
LENGTH | Length of the string literal or array of chars. |
chars | The string literal or array of chars to hash. |
|
constexpr |