Module |
|
Header |
/Engine/Source/Runtime/Core/Public/FileCache/FileCache.h |
Include |
#include "FileCache/FileCache.h" |
class IFileCacheHandle
Thready safety note: Once created a IFileCacheHandle is assumed to be only used from a single thread. (i.e. the IFileCacheHandle interface is not thread safe, and the user will need to ensure serialization). Of course you can create several IFileCacheHandle's on separate threads if needed. And obviously Internally threading will also be used to do async IO and cache management.
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 | Description | |
---|---|---|
|
~IFileCacheHandle() |
Name | Description | ||
---|---|---|---|
|
IFileCacheHa... |
CreateFileCacheHandle ( |
Create a IFileCacheHandle from a filename. |
|
IFileCacheHa... |
CreateFileCacheHandle ( |
Create a IFileCacheHandle from a IAsyncReadFileHandle. |
|
EvictAll() |
||
|
GetFileCacheSize() |
Return size of underlying file cache in bytes. |
|
|
FGraphEventR... |
PreloadData ( |
|
|
IMemoryReadS... |
ReadData ( |
Read a byte range form the file. |
|
WaitAll() |
Wait until all outstanding read requests complete. |