|
| bool | open (const std::string &file) |
| | Constructs the stream and opens a file.
|
| bool | isOpen () const |
|
void | close () |
| | Closes the file.
|
| size_t | read (void *buffer, size_t size) override |
| | Reads from the input stream.
|
| size_t | seek (size_t position) override |
| | Changes the current position the stream is reading.
|
| size_t | tell () override |
| size_t | getSize () override |
|
|
static constexpr size_t | FILE_NOT_FOUND = 0 |
|
static constexpr size_t | INVALID_FILE_SIZE = ~(0) |
|
static constexpr size_t | INVALID_FILE_POSITION = ~(0) |
◆ getSize()
◆ isOpen()
- Returns
- True if the file was successfully opened
◆ open()
Constructs the stream and opens a file.
- Parameters
-
| file | The path (absolute or relative) to the file |
Opens a file to read from
- Parameters
-
| file | The path (absolute or relative) to the file |
◆ read()
Reads from the input stream.
- Parameters
-
| buffer | The buffer to read the bytes into |
| size | The amount of bytes to read |
- Returns
- The amount of bytes written
Implements mce::io::stream::InputStream.
◆ seek()
Changes the current position the stream is reading.
- Parameters
-
| position | The position to seek the input stream to |
- Returns
- The position the input stream is at now
Implements mce::io::stream::InputStream.
◆ tell()
The documentation for this class was generated from the following file: