Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/IO/IoHash.h |
Include |
#include "IO/IoHash.h" |
struct FIoHash
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().
Name | Description | |
---|---|---|
|
FIoHash() |
Construct a zero hash. |
|
FIoHash ( |
Construct a hash from an array of 20 bytes. |
|
FIoHash ( |
Construct a hash from a view of 20 bytes. |
|
FIoHash ( |
Construct a hash from a BLAKE3-256 hash. |
|
FIoHash ( |
Construct a hash from a 40-character hex string. |
|
FIoHash ( |
Construct a zero hash. |
|
FIoHash ( |
Construct a zero hash. |
Name | Description | ||
---|---|---|---|
|
GetBytes() |
Returns a reference to the raw byte array for the hash. |
|
|
const ByteAr... |
GetBytes() |
|
|
HashBuffer ( |
Calculate the hash of the buffer. |
|
|
HashBuffer ( |
Calculate the hash of the buffer. |
|
|
HashBuffer |
Calculate the hash of the buffer. |
|
|
IsZero() |
Returns whether this is a zero hash. |
|
|
Reset() |
Reset this to a zero hash. |
Name |
Description |
---|---|
ByteArray |
Name |
Description |
---|---|
Zero |
A zero hash. |