Navigation
API > API/Runtime > API/Runtime/Core
All methods may be safely called from multiple threads simultaneously, unless otherwise noted
Also note, if you create several IFileCacheHandle's to the same file on separate threads these will be considered as individual separate files from the cache point of view and thus each will have their own cache data allocated.
| Name | IFileCacheHandle |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/FileCache/FileCache.h |
| Include Path | #include "FileCache/FileCache.h" |
Syntax
class IFileCacheHandle
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IFileCacheHandle() |
FileCache/FileCache.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGraphEventRef PreloadData
(
const FFileCachePreloadEntry* PreloadEntries, |
FileCache/FileCache.h | ||
IMemoryReadStreamRef ReadData
(
FGraphEventArray& OutCompletionEvents, |
Read a byte range form the file. | FileCache/FileCache.h | |
void WaitAll() |
Wait until all outstanding read requests complete. | FileCache/FileCache.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static IFileCacheHandle * CreateFileCacheHandle
(
const TCHAR* InFileName, |
Create a IFileCacheHandle from a filename. | FileCache/FileCache.h | |
static IFileCacheHandle * CreateFileCacheHandle
(
IAsyncReadFileHandle* FileHandle, |
Create a IFileCacheHandle from a IAsyncReadFileHandle. | FileCache/FileCache.h | |
static void EvictAll() |
FileCache/FileCache.h | ||
static int64 GetFileCacheSize() |
Return size of underlying file cache in bytes. | FileCache/FileCache.h |