Interface providing read access to a file.
More...
#include <IReadFile.h>
Interface providing read access to a file.
Definition at line 18 of file IReadFile.h.
◆ getFileName()
virtual const io::path& irr::io::IReadFile::getFileName |
( |
| ) |
const |
|
pure virtual |
Get name of file.
- Returns
- File name as zero terminated character string.
◆ getPos()
virtual long irr::io::IReadFile::getPos |
( |
| ) |
const |
|
pure virtual |
Get the current position in the file.
- Returns
- Current position in the file in bytes on success or -1L on failure.
◆ getSize()
virtual long irr::io::IReadFile::getSize |
( |
| ) |
const |
|
pure virtual |
Get size of file.
- Returns
- Size of the file in bytes.
◆ getType()
Get the type of the class implementing this interface.
Definition at line 48 of file IReadFile.h.
◆ read()
Reads an amount of bytes from the file.
- Parameters
-
buffer | Pointer to buffer where read bytes are written to. |
sizeToRead | Amount of bytes to read from the file. |
- Returns
- How many bytes were read.
◆ seek()
virtual bool irr::io::IReadFile::seek |
( |
long |
finalPos, |
|
|
bool |
relativeMovement = false |
|
) |
| |
|
pure virtual |
Changes position in file.
- Parameters
-
finalPos | Destination position in the file. |
relativeMovement | If set to true, the position in the file is changed relative to current position. Otherwise the position is changed from beginning of file. |
- Returns
- True if successful, otherwise false.
The documentation for this class was generated from the following file: