![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IoHash.h>
Public Types | |
| using | ByteArray = uint8[20] |
Public Member Functions | |
| constexpr | FIoHash ()=default |
| FIoHash (const ByteArray &Hash) | |
| FIoHash (const FBlake3Hash &Hash) | |
| FIoHash (FAnsiStringView HexHash) | |
| FIoHash (FWideStringView HexHash) | |
| FIoHash (FUtf8StringView HexHash) | |
| void | Reset () |
| bool | IsZero () const |
| ByteArray & | GetBytes () |
| const ByteArray & | GetBytes () const |
Static Public Member Functions | |
| static FIoHash | FromView (FMemoryView Hash) |
| static FIoHash | HashBuffer (FMemoryView View) |
| static FIoHash | HashBuffer (const void *Data, uint64 Size) |
| static FIoHash | HashBuffer (const FCompositeBuffer &Buffer) |
Static Public Attributes | |
| static const FIoHash | Zero |
Friends | |
| bool | operator== (const FIoHash &A, const FIoHash &B) |
| bool | operator!= (const FIoHash &A, const FIoHash &B) |
| bool | operator< (const FIoHash &A, const FIoHash &B) |
| uint32 | GetTypeHash (const FIoHash &Value) |
| FArchive & | operator<< (FArchive &Ar, FIoHash &InHash) |
Stores a BLAKE3-160 hash, taken from the first 20 bytes of a BLAKE3-256 hash.
The BLAKE3 hash function was selected for its high performance and its ability to parallelize. Only the leading 160 bits of the 256-bit hash are used, to provide strong collision resistance while minimizing the size of the hash.
When the data to hash is not in a contiguous region of memory, use FIoHashBuilder to hash data in blocks with FIoHashBuilder::Update(Block) followed by FIoHashBuilder::Finalize().
| using FIoHash::ByteArray = uint8[20] |
|
constexprdefault |
Construct a zero hash.
|
inlineexplicit |
Construct a hash from an array of 20 bytes.
|
inline |
Construct a hash from a BLAKE3-256 hash.
|
inlineexplicit |
Construct a hash from a 40-character hex string.
|
inlineexplicit |
|
inlineexplicit |
|
inlinestatic |
Construct a hash from a view of 20 bytes.
|
inline |
Returns a reference to the raw byte array for the hash.
|
inline |
|
inlinestatic |
|
inlinestatic |
Calculate the hash of the buffer.
|
inline |
Returns whether this is a zero hash.
|
inline |
Reset this to a zero hash.
|
inlinestatic |
A zero hash.