Navigation
API > API/Plugins > API/Plugins/ElectraBase > API/Plugins/ElectraBase/IBaseDataReader
Description
This method reads data into the provided buffer from the specified absolute offset. The number of bytes to read should be retrieved unless the end of the file is reached where returning fewer bytes than requested is permitted. Reading more bytes than requested is forbidden since the read buffer may not be large enough to accommodate more bytes than asked for. Negative return values to indicate a problem are defined in EResult_EResult::Canceled_ may be returned even if the provided cancellation delegate does not indicate cancelation, but the reader implementation has been canceled by other means (like application shutdown, or in case of an implementation reading from the network some other condition).
| Name | ReadData |
| Type | function |
| Header File | /Engine/Plugins/Media/ElectraUtil/Source/ElectraBase/Public/Utilities/IElectraBaseDataReader.h |
| Include Path | #include "Utilities/IElectraBaseDataReader.h" |
int64 ReadData
(
void * InOutBuffer,
int64 InNumBytes,
int64 InFromOffset,
FCancellationCheckDelegate InCheckCancellationDelegate
)