Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FCachedFileHandle
Description
Read bytes from the file.
If BytesToRead is larger than the bytes remaining in the file from the current read position the Read() will return true if the underlying file read could read all remaining bytes.
Virtual Inheritance
- IFileHandle::Read → FCachedFileHandle::Read
| Name | Read |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/IPlatformFileCachedWrapper.h |
| Include Path | #include "HAL/IPlatformFileCachedWrapper.h" |
virtual bool Read
(
uint8 * Destination,
int64 BytesToRead
)
true if the operation completed successfully. Returns false if a read is attempted while the read position is already at the end of the file.
Parameters
| Name | Remarks |
|---|---|
| Destination | Buffer to holds the results, should be at least BytesToRead in size. |
| BytesToRead | Number of bytes to read into the destination. |