FAsyncFileHasher

Async task responsible for MD5 hashing a number of files, reporting completed hashes to the client when done

Windows
MacOS
Linux

Inheritance Hierarchy

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

Name Description

Protected variable

FThreadSafeCoun...

 

CurrentIndex

The number of files that we have hashed on the task thread.

Protected variable

TArray< FFilena...

 

Data

The array of data that we will process

Protected variable

int32

 

NumReturned

The number of items we have returned to the client. Only accessed from the main thread.

Protected variable

TArray< uint8 >

 

ScratchBuffer

Scratch buffer used for reading in files

Constructors

Name Description

Public function

FAsyncFileHasher

(
    TArray< FFilenameAndHash > InFilesT...
)

Constructor

Functions

Name Description

Public function

TArray< FFil...

 

GetCompletedData()

Return any completed filenames and their corresponding hashes

Overridden from IAsyncFileCacheTask

Name Description

Public function Virtual Const

bool

 

IsComplete()

Returns true when this task has finished hashing all its files

Protected function Virtual

EProgressRes...

 

Tick

(
    const FTimeLimit& Limit
)

Tick this reader (hashes as many files as possible in the time allowed). Returns progress state.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss