48 static constexpr std::uint64_t
FNV_OFFSET = 1469598103934665603ull;
50 static constexpr std::uint64_t
FNV_PRIME = 1099511628211ull;
69 std::uint64_t
operator()(
const std::string &sString)
const noexcept {
71 for (
const unsigned char cChar: sString) {
88 static constexpr std::uint64_t
FNV_OFFSET = 1469598103934665603ull;
90 static constexpr std::uint64_t
FNV_PRIME = 1099511628211ull;
109 std::uint64_t
operator()(
const std::string_view &sString)
const noexcept {
111 for (
const unsigned char cChar: sString) {
BashSpark main namespace.
Definition command.h:39
Custom hash functor for strings using the 64-bit FNV-1a algorithm.
Definition shell_hash.h:86
static constexpr std::uint64_t FNV_PRIME
FVN prime.
Definition shell_hash.h:90
std::uint64_t operator()(const std::string_view &sString) const noexcept
Computes a 64-bit FNV-1a hash for a string.
Definition shell_hash.h:109
static constexpr std::uint64_t FNV_OFFSET
FVN offset.
Definition shell_hash.h:88
Custom hash functor for strings using the 64-bit FNV-1a algorithm.
Definition shell_hash.h:46
static constexpr std::uint64_t FNV_OFFSET
FVN offset.
Definition shell_hash.h:48
std::uint64_t operator()(const std::string &sString) const noexcept
Computes a 64-bit FNV-1a hash for a string.
Definition shell_hash.h:69
static constexpr std::uint64_t FNV_PRIME
FVN prime.
Definition shell_hash.h:50