VISR  0.11.6
Versatile Interactive Scene Renderer
visr::detail Namespace Reference

Functions

constexpr uint64_t fnv1 (uint64_t h, const char *s)
 
constexpr uint64_t compileTimeHashFNV1 (const char *s)
 

Function Documentation

◆ compileTimeHashFNV1()

constexpr uint64_t visr::detail::compileTimeHashFNV1 ( const char *  s)

Compute a hash value (64bit unsigned int) from a string. This function is 'constexpr, i.e., can be used at compile time. Adapted from https://github.com/elbeno/constexpr Licence of original code: MIT

Parameters
sString to be hashed. Must be a compile-time literal to enable use as a constexpr function.

◆ fnv1()

constexpr uint64_t visr::detail::fnv1 ( uint64_t  h,
const char *  s 
)

Internal implementation function