Navigation
API > API/Developer > API/Developer/DirectoryWatcher
Inheritance Hierarchy
- TSharedFromThis
- IAsyncFileCacheTask
- FAsyncFileHasher
References
| Module | DirectoryWatcher |
| Header | /Engine/Source/Developer/DirectoryWatcher/Public/FileCache.h |
| Include | #include "FileCache.h" |
Syntax
struct FAsyncFileHasher : public 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 | |
|---|---|---|---|
| FThreadSafeCounter | CurrentIndex | The number of files that we have hashed on the task thread. | |
| TArray< FFilenameAndHash > | 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 > InFilesThatNeedHashing |
Constructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TArray< FFilenameAndHash > | 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 | |
| EProgressResult | Tick
(
const FTimeLimit& Limit |
Tick this reader (hashes as many files as possible in the time allowed). Returns progress state. |