3D Graphics Engine for ESP32
 
Loading...
Searching...
No Matches
basics Namespace Reference

Namespaces

namespace  internal
 

Typedefs

typedef unsigned int Id
 

Functions

template<size_t LENGTH>
constexpr uint32_t static_fnv32 (const char(&chars)[LENGTH])
 
template<size_t LENGTH>
constexpr uint64_t static_fnv64 (const char(&chars)[LENGTH])
 
template<size_t LENGTH>
constexpr unsigned static_fnv (const char(&chars)[LENGTH])
 
template<size_t LENGTH>
uint32_t fnv32 (const char(&chars)[LENGTH])
 
uint32_t fnv32 (const std::string &s)
 

Typedef Documentation

◆ Id

typedef unsigned int basics::Id

Function Documentation

◆ fnv32() [1/2]

template<size_t LENGTH>
uint32_t basics::fnv32 ( const char(&) chars[LENGTH])

◆ fnv32() [2/2]

uint32_t basics::fnv32 ( const std::string & s)
inline

◆ static_fnv()

template<size_t LENGTH>
unsigned basics::static_fnv ( const char(&) chars[LENGTH])
constexpr
Here is the call graph for this function:

◆ static_fnv32()

template<size_t LENGTH>
uint32_t basics::static_fnv32 ( const char(&) chars[LENGTH])
constexpr

Implements the Fowler–Noll–Vo hash function (FNV-1a) which calculates a 32 bit hash code from a C string literal (or array of chars) at compile time.

Template Parameters
LENGTHLength of the string literal or array of chars.
Parameters
charsThe string literal or array of chars to hash.
Returns
The hash code.
Here is the call graph for this function:

◆ static_fnv64()

template<size_t LENGTH>
uint64_t basics::static_fnv64 ( const char(&) chars[LENGTH])
constexpr
Here is the call graph for this function: