Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/IFileCacheHandle
Description
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.
| Name | ReadData |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/FileCache/FileCache.h |
| Include Path | #include "FileCache/FileCache.h" |
IMemoryReadStreamRef ReadData
(
FGraphEventArray & OutCompletionEvents,
int64 Offset,
int64 BytesToRead,
EAsyncIOPriorityAndFlags Priority
)
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
Parameters
| Name | Remarks |
|---|---|
| OutCompletionEvents | Must wait until these events are complete before returned data is valid |