Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FBlake3Hash Struct Reference

#include <Blake3.h>

+ Collaboration diagram for FBlake3Hash:

Public Types

using ByteArray = uint8[32]
 

Public Member Functions

 FBlake3Hash ()=default
 
 FBlake3Hash (const ByteArray &Hash)
 
 FBlake3Hash (FAnsiStringView HexHash)
 
 FBlake3Hash (FWideStringView HexHash)
 
 FBlake3Hash (FUtf8StringView HexHash)
 
void Reset ()
 
bool IsZero () const
 
ByteArrayGetBytes ()
 
const ByteArrayGetBytes () const
 
bool operator== (const FBlake3Hash &B) const
 
bool operator!= (const FBlake3Hash &B) const
 
bool operator< (const FBlake3Hash &B) const
 

Static Public Member Functions

static FBlake3Hash FromView (FMemoryView Hash)
 

Static Public Attributes

static const FBlake3Hash Zero
 

Private Attributes

ByteArray Hash {}
 

Friends

FArchiveoperator<< (FArchive &Ar, FBlake3Hash &Value)
 
uint32 GetTypeHash (const FBlake3Hash &Value)
 

Detailed Description

Stores a BLAKE3 hash.

Definition at line 26 of file Blake3.h.

Member Typedef Documentation

◆ ByteArray

Definition at line 29 of file Blake3.h.

Constructor & Destructor Documentation

◆ FBlake3Hash() [1/5]

FBlake3Hash::FBlake3Hash ( )
default

Construct a zero hash.

+ Here is the caller graph for this function:

◆ FBlake3Hash() [2/5]

FBlake3Hash::FBlake3Hash ( const ByteArray & Hash)
inlineexplicit

Construct a hash from an array of 32 bytes.

Definition at line 127 of file Blake3.h.

+ Here is the call graph for this function:

◆ FBlake3Hash() [3/5]

FBlake3Hash::FBlake3Hash ( FAnsiStringView HexHash)
inlineexplicit

Construct a hash from a 64-character hex string.

Definition at line 132 of file Blake3.h.

◆ FBlake3Hash() [4/5]

FBlake3Hash::FBlake3Hash ( FWideStringView HexHash)
inlineexplicit

Definition at line 138 of file Blake3.h.

◆ FBlake3Hash() [5/5]

FBlake3Hash::FBlake3Hash ( FUtf8StringView HexHash)
inlineexplicit

Definition at line 144 of file Blake3.h.

Member Function Documentation

◆ FromView()

FBlake3Hash FBlake3Hash::FromView ( FMemoryView Hash)
inlinestatic

Construct a hash from a view of 32 bytes.

Definition at line 150 of file Blake3.h.

◆ GetBytes() [1/2]

ByteArray & FBlake3Hash::GetBytes ( )
inline

Returns a reference to the raw byte array for the hash.

Definition at line 52 of file Blake3.h.

◆ GetBytes() [2/2]

const ByteArray & FBlake3Hash::GetBytes ( ) const
inline

Definition at line 53 of file Blake3.h.

+ Here is the caller graph for this function:

◆ IsZero()

bool FBlake3Hash::IsZero ( ) const
inline

Returns whether this is a zero hash.

Definition at line 159 of file Blake3.h.

◆ operator!=()

bool FBlake3Hash::operator!= ( const FBlake3Hash & B) const
inline

Definition at line 63 of file Blake3.h.

+ Here is the call graph for this function:

◆ operator<()

bool FBlake3Hash::operator< ( const FBlake3Hash & B) const
inline

Definition at line 68 of file Blake3.h.

+ Here is the call graph for this function:

◆ operator==()

bool FBlake3Hash::operator== ( const FBlake3Hash & B) const
inline

Definition at line 58 of file Blake3.h.

+ Here is the call graph for this function:

◆ Reset()

void FBlake3Hash::Reset ( )
inline

Reset this to a zero hash.

Definition at line 46 of file Blake3.h.

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ GetTypeHash

uint32 GetTypeHash ( const FBlake3Hash & Value)
friend

Definition at line 79 of file Blake3.h.

◆ operator<<

FArchive & operator<< ( FArchive & Ar,
FBlake3Hash & Value )
friend

Definition at line 73 of file Blake3.h.

Member Data Documentation

◆ Hash

ByteArray FBlake3Hash::Hash {}
private

Definition at line 85 of file Blake3.h.

◆ Zero

const FBlake3Hash FBlake3Hash::Zero
inlinestatic

A zero hash.

Definition at line 56 of file Blake3.h.


The documentation for this struct was generated from the following file: