Navigation
Unreal Engine C++ API Reference > Developer > DirectoryWatcher
Inheritance Hierarchy
References
Module | DirectoryWatcher |
Header | /Engine/Source/Developer/DirectoryWatcher/Public/FileCache.h |
Include | #include "FileCache.h" |
Syntax
struct FAsyncFileHasher : public [DirectoryWatcher::IAsyncFileCacheTask](API\Developer\DirectoryWatcher\IAsyncFileCacheTask)
Remarks
Async task responsible for MD5 hashing a number of files, reporting completed hashes to the client when done
Variables
Type | Name | Description |
---|---|---|
FThreadSafeCoun... | CurrentIndex | The number of files that we have hashed on the task thread. |
TArray< FFilena... | Data | The array of data that we will process |
int32 | NumReturned | The number of items we have returned to the client. Only accessed from the main thread. |
TArray< uint8 > | ScratchBuffer | Scratch buffer used for reading in files |
Constructors
Type | Name | Description |
---|---|---|
FAsyncFileHasher ( TArray< FFilenameAndHash > InFilesT... ) | Constructor |
Functions
Type | Name | Description |
---|---|---|
TArray< FFil... | GetCompletedData () | Return any completed filenames and their corresponding hashes |
Overridden from IAsyncFileCacheTask
Type | Name | Description |
---|---|---|
bool | IsComplete () | Returns true when this task has finished hashing all its files |
EProgressRes... | Tick ( const FTimeLimit& Limit ) | Tick this reader (hashes as many files as possible in the time allowed). Returns progress state. |