|
| | FFileCacheHandle (IAsyncReadFileHandle *InHandle, int64 InBaseOffset) |
| |
| virtual | ~FFileCacheHandle () override |
| |
| template<typename BlockIDType > |
| PRAGMA_DISABLE_UNSAFE_TYPECAST_WARNINGS BlockIDType | GetBlock (int64 Offset) |
| |
| template<typename BlockIDType > |
| PRAGMA_RESTORE_UNSAFE_TYPECAST_WARNINGS int32 | GetNumBlocks (int64 Offset, int64 Size) |
| |
| template<typename BlockIDType > |
| int64 | GetBlockOffset (int64 Offset) |
| |
| template<typename BlockIDType > |
| int64 | GetBlockSize (int64 Offset, int64 Size) |
| |
| virtual IMemoryReadStreamRef | ReadData (FGraphEventArray &OutCompletionEvents, int64 Offset, int64 BytesToRead, EAsyncIOPriorityAndFlags Priority) override |
| |
| virtual FGraphEventRef | PreloadData (const FFileCachePreloadEntry *PreloadEntries, int32 NumEntries, EAsyncIOPriorityAndFlags Priority) override |
| |
| IMemoryReadStreamRef | ReadDataUncached (FGraphEventArray &OutCompletionEvents, int64 Offset, int64 BytesToRead, EAsyncIOPriorityAndFlags Priority) |
| |
| void | WaitAll () override |
| |
| void | Evict (CacheLineID Line) |
| |
Public Member Functions inherited from IFileCacheHandle |
| virtual | ~IFileCacheHandle () |
| |
◆ FFileCacheHandle()
◆ ~FFileCacheHandle()
| FFileCacheHandle::~FFileCacheHandle |
( |
| ) |
|
|
overridevirtual |
◆ Evict()
◆ GetBlock()
◆ GetBlockOffset()
| int64 FFileCacheHandle::GetBlockOffset |
( |
int64 |
Offset | ) |
|
|
inline |
◆ GetBlockSize()
◆ GetNumBlocks()
◆ PreloadData()
◆ ReadData()
Read a byte range form the file. This can be a high-throughput operation and done lots of times for small reads. The system will handle this efficiently.
- Parameters
-
| OutCompletionEvents | Must wait until these events are complete before returned data is valid |
- Returns
- Memory stream that contains the requested range. May return nullptr in rare cases if the request could not be serviced Data read from this stream will not be valid until all events returned in OutCompletionEvents are complete
Implements IFileCacheHandle.
◆ ReadDataUncached()
◆ WaitAll()
| void FFileCacheHandle::WaitAll |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: