carb::fnv1aHash

Defined in carb/Defines.h

constexpr uint64_t carb::fnv1aHash(const char *str, std::size_t n, uint64_t hash = kFnvBasis)

Compile-time FNV-1a 64-bit hash, use with CARB_HASH_STRING macro.

Parameters
  • str – The string to hash.

  • n – The number of characters in str, not including the NUL terminator.

  • hash – The previous hash value or starting hash basis.

Returns

A hash computed from the given parameters.