Navigation
Unreal Engine C++ API Reference > Runtime > Core > FileCache
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/FileCache/FileCache.h |
Include | #include "FileCache/FileCache.h" |
Syntax
class IFileCacheHandle
Remarks
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.
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
IFileCacheHandle * | CreateFileCacheHandle
(
const TCHAR* InFileName, |
Create a IFileCacheHandle from a filename. |
![]() ![]() |
IFileCacheHandle * | CreateFileCacheHandle
(
IAsyncReadFileHandle* FileHandle, |
Create a IFileCacheHandle from a IAsyncReadFileHandle. |
![]() ![]() |
void | EvictAll () |
|
![]() ![]() |
int64 | Return size of underlying file cache in bytes. | |
![]() |
FGraphEventRef | PreloadData
(
const FFileCachePreloadEntry* PreloadEntries, |
|
![]() |
IMemoryReadStreamRef | ReadData
(
FGraphEventArray& OutCompletionEvents, |
Read a byte range form the file. |
![]() |
void | WaitAll () |
Wait until all outstanding read requests complete. |