Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
HashType UE::HashStringFNV1a
(
TStringView< CharType > String |
Implements a constexpr usable version of FNV1a for strings. | Hash/Fnv.h | |
HashType UE::HashStringFNV1a
(
const CharType(&) StringLiteral |
Version taking a string literal. Use this version to force hashing at compile time. | Hash/Fnv.h |
UE::HashStringFNV1a(TStringView< CharType >)
Description
Implements a constexpr usable version of FNV1a for strings.
Note: This implementation is 'stable' such that the same string of different character widths will hash to the same value (eg. HashStringFNV1a("Hello") == HashStringFNV1a(L"Hello")). This behavior is appropriate here as we're operating on strings specifically rather than raw buffers and we want consistent hashes between different platforms.
| Name | UE::HashStringFNV1a |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Hash/Fnv.h |
| Include Path | #include "Hash/Fnv.h" |
namespace UE
{
template<typename HashType, typename CharType>
HashType UE::HashStringFNV1a
(
TStringView < CharType > String
)
}
UE::HashStringFNV1a(const CharType(&))
Description
Version taking a string literal. Use this version to force hashing at compile time.
| Name | UE::HashStringFNV1a |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Hash/Fnv.h |
| Include Path | #include "Hash/Fnv.h" |
namespace UE
{
template<typename HashType, typename CharType, int32 Len>
HashType UE::HashStringFNV1a
(
const CharType(&) StringLiteral
)
}