Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
hash.hpp File Reference
#include <cstddef>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  helios
namespace  helios::utils

Typedefs

using helios::utils::HashType = size_t

Functions

constexpr HashType helios::utils::Fnv1aHash (std::string_view str, HashType hash=kFnvBasis) noexcept
 Computes the FNV-1a hash of a string.
template<size_t N>
constexpr HashType helios::utils::Fnv1aHash (const char(&array)[N]) noexcept
 Computes the FNV-1a hash of a string literal.

Variables

constexpr HashType helios::utils::kFnvBasis = 14695981039346656037ULL
constexpr HashType helios::utils::kFnvPrime = 1099511628211ULL