engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 属性 | 所有成员列表
FAsyncSHAVerify类 参考

Asynchronous SHA verification 更多...

#include <SecureHash.h>

Public 成员函数

void Abandon ()
 Abandon task, deletes the buffer if that is what was requested
 
bool CanAbandon ()
 Task API, return true to indicate that we can abandon
 
void DoWork ()
 Performs the async hash verification
 
 FAsyncSHAVerify (void *InBuffer, uint64 InBufferSize, bool bInShouldDeleteBuffer, const TCHAR *InPathname, bool bInIsUnfoundHashAnError)
 Constructor. 更多...
 

Protected 属性

bool bIsUnfoundHashAnError
 If this is true, and looking up the hash by filename fails, this will abort execution
 
bool bShouldDeleteBuffer
 Should this class delete the buffer memory when verification is complete?
 
void * Buffer
 Buffer to run the has on. 更多...
 
uint64 BufferSize
 Size of Buffer
 
uint8 Hash [20]
 Hash to compare against
 
FString Pathname
 Filename to lookup hash value (can be empty if hash was passed to constructor)
 

详细描述

Asynchronous SHA verification

构造及析构函数说明

◆ FAsyncSHAVerify()

FAsyncSHAVerify::FAsyncSHAVerify ( void *  InBuffer,
uint64  InBufferSize,
bool  bInShouldDeleteBuffer,
const TCHAR *  InPathname,
bool  bInIsUnfoundHashAnError 
)
inline

Constructor.

参数
InBufferBuffer of data to calculate has on. MUST be valid until this task completes (use Counter or pass ownership via bInShouldDeleteBuffer)
InBufferSizeSize of InBuffer
bInShouldDeleteBuffertrue 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
PathnamePathname to use to have the platform lookup the hash value
bInIsUnfoundHashAnErrortrue if failing to lookup the hash value results in a fail (only for Shipping PC)

类成员变量说明

◆ Buffer

void* FAsyncSHAVerify::Buffer
protected

Buffer to run the has on.

This class can take ownership of the buffer is bShouldDeleteBuffer is true


该类的文档由以下文件生成: