UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMD5Hash Struct Reference

#include <SecureHash.h>

Public Member Functions

 FMD5Hash ()
 
bool IsValid () const
 
void Set (FMD5 &MD5)
 
const uint8GetBytes () const
 
const int32 GetSize () const
 

Static Public Member Functions

static CORE_API FMD5Hash HashFile (const TCHAR *InFilename, TArray< uint8 > *Buffer=nullptr)
 
static CORE_API FMD5Hash HashFileFromArchive (FArchive *Ar, TArray< uint8 > *ScratchPad=nullptr)
 

Friends

bool operator== (const FMD5Hash &LHS, const FMD5Hash &RHS)
 
bool operator!= (const FMD5Hash &LHS, const FMD5Hash &RHS)
 
FArchiveoperator<< (FArchive &Ar, FMD5Hash &Hash)
 
FCbWriteroperator<< (FCbWriter &Writer, const FMD5Hash &Hash)
 
bool LoadFromCompactBinary (const FCbFieldView &Field, FMD5Hash &OutHash)
 
FString LexToString (const FMD5Hash &InHash)
 
void LexFromString (FMD5Hash &Hash, const TCHAR *InString)
 

Detailed Description

Simple helper struct to ease the caching of MD5 hashes

Constructor & Destructor Documentation

◆ FMD5Hash()

FMD5Hash::FMD5Hash ( )
inline

Default constructor

Member Function Documentation

◆ GetBytes()

const uint8 * FMD5Hash::GetBytes ( ) const
inline

◆ GetSize()

const int32 FMD5Hash::GetSize ( ) const
inline

◆ HashFile()

FMD5Hash FMD5Hash::HashFile ( const TCHAR InFilename,
TArray< uint8 > *  Buffer = nullptr 
)
static

Hash the specified file contents (using the optionally supplied scratch buffer)

◆ HashFileFromArchive()

FMD5Hash FMD5Hash::HashFileFromArchive ( FArchive Ar,
TArray< uint8 > *  ScratchPad = nullptr 
)
static

◆ IsValid()

bool FMD5Hash::IsValid ( ) const
inline

Check whether this has hash is valid or not

◆ Set()

void FMD5Hash::Set ( FMD5 MD5)
inline

Set up the MD5 hash from a container

Friends And Related Symbol Documentation

◆ LexFromString

void LexFromString ( FMD5Hash Hash,
const TCHAR InString 
)
friend

◆ LexToString

FString LexToString ( const FMD5Hash InHash)
friend

◆ LoadFromCompactBinary

bool LoadFromCompactBinary ( const FCbFieldView Field,
FMD5Hash OutHash 
)
friend

◆ operator!=

bool operator!= ( const FMD5Hash LHS,
const FMD5Hash RHS 
)
friend

Compare one hash with another

◆ operator<< [1/2]

FArchive & operator<< ( FArchive Ar,
FMD5Hash Hash 
)
friend

Serialise this hash

◆ operator<< [2/2]

FCbWriter & operator<< ( FCbWriter Writer,
const FMD5Hash Hash 
)
friend

◆ operator==

bool operator== ( const FMD5Hash LHS,
const FMD5Hash RHS 
)
friend

Compare one hash with another


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