Ark Server API (ASA) - Wiki
|
#include <SecureHash.h>
Public Member Functions | |
FMD5Hash () | |
bool | IsValid () const |
void | Set (FMD5 &MD5) |
const uint8 * | GetBytes () const |
const int32 | GetSize () const |
Static Public Member Functions | |
static FMD5Hash | HashFile (const TCHAR *InFilename, TArray< uint8 > *Buffer=nullptr) |
static FMD5Hash | HashFileFromArchive (FArchive *Ar, TArray< uint8 > *ScratchPad=nullptr) |
Private Member Functions | |
FCbWriter & | WriteCompactBinary (FCbWriter &Writer) const |
Private Attributes | |
bool | bIsValid |
uint8 | Bytes [16] |
Friends | |
bool | operator== (const FMD5Hash &LHS, const FMD5Hash &RHS) |
bool | operator!= (const FMD5Hash &LHS, const FMD5Hash &RHS) |
FArchive & | operator<< (FArchive &Ar, FMD5Hash &Hash) |
FCbWriter & | operator<< (FCbWriter &Writer, const FMD5Hash &Hash) |
bool | LoadFromCompactBinary (FCbFieldView Field, FMD5Hash &OutHash) |
FString | LexToString (const FMD5Hash &) |
void | LexFromString (FMD5Hash &Hash, const TCHAR *) |
Simple helper struct to ease the caching of MD5 hashes
Definition at line 138 of file SecureHash.h.
|
inline |
Default constructor
Definition at line 141 of file SecureHash.h.
Definition at line 182 of file SecureHash.h.
|
static |
Hash the specified file contents (using the optionally supplied scratch buffer)
|
static |
|
inline |
Check whether this has hash is valid or not
Definition at line 144 of file SecureHash.h.
Set up the MD5 hash from a container
Definition at line 147 of file SecureHash.h.
|
friend |
Compare one hash with another
Definition at line 160 of file SecureHash.h.
Serialise this hash
Definition at line 166 of file SecureHash.h.
Definition at line 191 of file SecureHash.h.
Compare one hash with another
Definition at line 154 of file SecureHash.h.
|
private |
Whether this hash is valid or not
Definition at line 186 of file SecureHash.h.
|
private |
The bytes this hash comprises
Definition at line 189 of file SecureHash.h.