IFileCacheHandle::ReadData

Read a byte range form the file.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/FileCache/FileCache.h

Include

#include "FileCache/FileCache.h"

Syntax

IMemoryReadStreamRef ReadData
(
    FGraphEventArray & OutCompletionEvents,
    int64 Offset,
    int64 BytesToRead,
    EAsyncIOPriorityAndFlags Priority
)

Remarks

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.

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

Parameters

Parameter

Description

OutCompletionEvents

Must wait until these events are complete before returned data is valid