IFileHandle

Inheritance Hierarchy

Syntax

class IFileHandle

Remarks

File handle interface.

Destructors

Name Description

Public function Virtual

~IFileHandle()

Destructor, also the only way to close the file handle

Functions

Name Description

Public function

bool

 

Flush

(
    const bool bFullFlush
)

Flushes file handle to disk.

Public function

bool

 

Read

(
    uint8 * Destination,
    int64 BytesToRead
)

Read bytes from the file.

Public function

bool

 

Seek

(
    int64 NewPosition
)

Change the current write or read position.

Public function

bool

 

SeekFromEnd

(
    int64 NewPositionRelativeToEnd
)

Change the current write or read position, relative to the end of the file.

Public function Virtual

int64

 

Size()

Return the total size of the file

Public function

int64

 

Tell()

Return the current write or read position.

Public function

bool

 

Truncate

(
    int64 NewSize
)

Truncate the file to the given size (in bytes).

Public function

bool

 

Write

(
    const uint8 * Source,
    int64 BytesToWrite
)

Write bytes to the file.

References

Module

Core

Header

Runtime/Core/Public/GenericPlatform/GenericPlatformFile.h