carb::hashString

Defined in carb/Defines.h

inline uint64_t carb::hashString(const char *str, uint64_t hash = kFnvBasis)

Runtime FNV-1a 64-bit string hash.

Parameters
  • str – The C-style (NUL terminated) string to hash.

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

Returns

A hash computed from the given parameters.