hashBuffer#

Fully qualified name: carb::hashBuffer

Defined in carb/Defines.h

inline uint64_t carb::hashBuffer(
const void *buffer,
size_t length,
uint64_t hash = kFnvBasis,
)#

Runtime FNV-1a 64-bit byte hash.

Parameters:
  • buffer – The byte buffer to hash.

  • length – The number of bytes in buffer.

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

Returns:

A hash computed from the given parameters.