CoriEngine
Loading...
Searching...
No Matches
StringHash.hpp File Reference
#include <entt/entt.hpp>
Include dependency graph for StringHash.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Cori
 Global engine namespace.
namespace  Cori::Utility
 A namespace for utilities of different kinds.

Typedefs

using Cori::Utility::StringHash64 = uint64_t
using Cori::Utility::StringHash32 = entt::hashed_string::hash_type

Functions

constexpr std::uint64_t Cori::Utility::fnv1a64 (const char *str, const std::size_t len)
 Computes the 64bit FNV-1a string hash.
consteval Cori::Utility::StringHash32 operator""_hs32 (const char *str, size_t len)
 A consteval operator to seamlessly create compile time 32bit FNA-1a string hashes. Usage "StringToHash"_hs32.
consteval Cori::Utility::StringHash64 operator""_hs64 (const char *str, const size_t len)
 A consteval operator to seamlessly create compile time 64bit FNA-1a string hashes. Usage "StringToHash"_hs64.

Function Documentation

◆ operator""_hs32()

Cori::Utility::StringHash32 operator""_hs32 ( const char * str,
size_t len )
nodiscardconsteval

A consteval operator to seamlessly create compile time 32bit FNA-1a string hashes. Usage "StringToHash"_hs32.

Definition at line 34 of file StringHash.hpp.

◆ operator""_hs64()

Cori::Utility::StringHash64 operator""_hs64 ( const char * str,
const size_t len )
nodiscardconsteval

A consteval operator to seamlessly create compile time 64bit FNA-1a string hashes. Usage "StringToHash"_hs64.

Definition at line 41 of file StringHash.hpp.

Here is the call graph for this function: