Navigation
Unreal Engine C++ API Reference > Runtime > Core > GenericPlatform
Inheritance Hierarchy
- IFileHandle
- FCachedFileHandle
- FLoggedFileHandle
- FManagedStorageFileWriteHandle
- FNetworkFileHandle
- FPakFileHandle
- FRegisteredFileHandle
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformFile.h |
Include | #include "GenericPlatform/GenericPlatformFile.h" |
Syntax
class IFileHandle
Remarks
File handle interface.
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
~IFileHandle () |
Destructor, also the only way to close the file handle |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
bool | Flush
(
const bool bFullFlush |
Flushes file handle to disk. |
![]() |
bool | Read
(
uint8* Destination, |
Read bytes from the file. |
![]() |
bool | Seek
(
int64 NewPosition |
Change the current write or read position. |
![]() |
bool | SeekFromEnd
(
int64 NewPositionRelativeToEnd |
Change the current write or read position, relative to the end of the file. |
![]() ![]() |
void | Minimizes optional system or process cache kept for the file. | |
![]() ![]() |
int64 | Size () |
Return the total size of the file |
![]() |
int64 | Tell () |
Return the current write or read position. |
![]() |
bool | Truncate
(
int64 NewSize |
Truncate the file to the given size (in bytes). |
![]() |
bool | Write
(
const uint8* Source, |
Write bytes to the file. |