![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SecureHash.h>
Public Member Functions | |
| FAsyncSHAVerify (void *InBuffer, uint64 InBufferSize, bool bInShouldDeleteBuffer, const TCHAR *InPathname, bool bInIsUnfoundHashAnError) | |
| CORE_API void | DoWork () |
| bool | CanAbandon () |
| void | Abandon () |
| UE_FORCEINLINE_HINT TStatId | GetStatId () const |
Protected Attributes | |
| void * | Buffer |
| uint64 | BufferSize |
| uint8 | Hash [20] |
| FString | Pathname |
| bool | bIsUnfoundHashAnError |
| bool | bShouldDeleteBuffer |
Asynchronous SHA verification
|
inline |
Constructor.
| InBuffer | Buffer of data to calculate has on. MUST be valid until this task completes (use Counter or pass ownership via bInShouldDeleteBuffer) |
| InBufferSize | Size of InBuffer |
| bInShouldDeleteBuffer | true if this task should FMemory::Free InBuffer on completion of the verification. Useful for a fire & forget verification NOTE: If you pass ownership to the task MAKE SURE you are done using the buffer as it could go away at ANY TIME |
| Pathname | Pathname to use to have the platform lookup the hash value |
| bInIsUnfoundHashAnError | true if failing to lookup the hash value results in a fail (only for Shipping PC) |
|
inline |
Abandon task, deletes the buffer if that is what was requested
|
inline |
Task API, return true to indicate that we can abandon
| void FAsyncSHAVerify::DoWork | ( | ) |
Performs the async hash verification
|
inline |
|
protected |
If this is true, and looking up the hash by filename fails, this will abort execution
|
protected |
Should this class delete the buffer memory when verification is complete?
|
protected |
Buffer to run the has on. This class can take ownership of the buffer is bShouldDeleteBuffer is true
|
protected |
Size of Buffer
|
protected |
Hash to compare against
|
protected |
Filename to lookup hash value (can be empty if hash was passed to constructor)