![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SignedArchiveReader.h>
Inheritance diagram for FChunkCacheWorker:Public Member Functions | |
| FChunkCacheWorker (TUniquePtr< FArchive > InReader, const TCHAR *Filename) | |
| virtual | ~FChunkCacheWorker () |
| virtual bool | Init () |
| virtual uint32 | Run () |
| virtual void | Stop () |
| TSharedPtr< const FPakSignatureFile, ESPMode::ThreadSafe > | GetSignatures () const |
| FChunkRequest & | RequestChunk (int32 ChunkIndex, int64 StartOffset, int64 ChunkSize, FEvent *Event) |
| void | ReleaseChunk (FChunkRequest &Chunk) |
| bool | IsValid () const |
Public Member Functions inherited from FRunnable | |
| virtual void | Exit () |
| virtual class FSingleThreadRunnable * | GetSingleThreadInterface () |
| virtual | ~FRunnable () |
Friends | |
| class | FSignedArchiveReader |
Thread that loads and verifies signed chunks. One per pak file but can serve multiple FSignedArchiveReaders from multiple threads! Can process multiple chunks using a limited number of buffers.
| FChunkCacheWorker::FChunkCacheWorker | ( | TUniquePtr< FArchive > | InReader, |
| const TCHAR * | Filename | ||
| ) |
|
virtual |
|
inline |
| bool FChunkCacheWorker::IsValid | ( | ) | const |
Indicates that this chunk worker is valid. If the signature file couldn't be loaded or if it failed the principal table check, this will be false
| void FChunkCacheWorker::ReleaseChunk | ( | FChunkRequest & | Chunk | ) |
Releases the requested chunk buffer
| FChunkRequest & FChunkCacheWorker::RequestChunk | ( | int32 | ChunkIndex, |
| int64 | StartOffset, | ||
| int64 | ChunkSize, | ||
| FEvent * | Event | ||
| ) |
Requests a chunk to be loaded and verified
| ChunkIndex | Index of a chunk to load |
| StartOffset | Offset to the beginning of the chunk |
| ChunkSize | Chunk size |
| Event | Optional FEvent that will signal when the request is ready, nullptr is valid if the calling code does not want this signal |
|
virtual |
|
friend |