|
TachyonUI 0.1.0
High-performance UI for building tools.
|
Functions | |
| constexpr uint64_t | CalculateConst (std::string_view str, uint64_t hash=Basis) |
| FNV-1a hash of str, usable at compile time; hash continues an earlier hash. | |
| uint64_t | Calculate (std::string_view str) |
| FNV-1a hash of str; same result as CalculateConst. | |
| uint64_t | CalculateBytes (const void *data, size_t len) |
| FNV-1a hash of len bytes at data. | |
| template<typename T, typename = std::enable_if_t<std::is_trivially_copyable_v<std::decay_t<T>> && !std::is_pointer_v<std::decay_t<T>> && !std::is_same_v<std::decay_t<T>, std::string_view>>> | |
| uint64_t | Calculate (const T &value) |
| FNV-1a hash of a trivially-copyable value's bytes, padding included. | |
| constexpr uint64_t | Combine (uint64_t a, uint64_t b) |
| Order-dependent combine; repeated values don't cancel out. | |
| template<typename... Args> | |
| constexpr uint64_t | Combine (const Args &... args) |
| Combines the Calculate hashes of args, in order. | |
Variables | |
| constexpr uint64_t | Basis = 14695981039346656037ULL |
| FNV-1a 64-bit offset basis (Prime is the FNV-1a prime). | |
| constexpr uint64_t | Prime = 1099511628211ULL |
|
constexpr |
FNV-1a hash of str, usable at compile time; hash continues an earlier hash.
|
inline |
FNV-1a hash of str; same result as CalculateConst.
|
inline |
FNV-1a hash of len bytes at data.
|
inline |
FNV-1a hash of a trivially-copyable value's bytes, padding included.
Pointers are rejected: hashing one hashes the address, not the object.
|
inlineconstexpr |
Order-dependent combine; repeated values don't cancel out.
|
inlineconstexpr |
Combines the Calculate hashes of args, in order.
|
constexpr |
FNV-1a 64-bit offset basis (Prime is the FNV-1a prime).
|
constexpr |