#include <FileInputStream.h>
◆ FileInputStream() [1/2]
| FileInputStream::FileInputStream |
( |
| ) |
|
|
default |
◆ FileInputStream() [2/2]
| FileInputStream::FileInputStream |
( |
std::string_view |
path | ) |
|
|
explicit |
◆ ~FileInputStream()
| FileInputStream::~FileInputStream |
( |
| ) |
|
|
virtual |
◆ close()
| void FileInputStream::close |
( |
| ) |
|
|
overridevirtual |
Closes this input stream. Reading from a closed stream will result in undefined behavior.
Does nothing if the stream is already closed.
- Exceptions
-
Implements InputStream.
◆ closeInternal()
| void FileInputStream::closeInternal |
( |
bool |
canThrow | ) |
|
|
private |
◆ displayPath()
| std::string FileInputStream::displayPath |
( |
| ) |
const |
|
overridevirtual |
- Returns
- Path to the file or resource being read, to be used for debugging and error reporting.
Implements InputStream.
◆ handle()
| FILE * FileInputStream::handle |
( |
| ) |
|
|
inline |
◆ isOpen()
| bool FileInputStream::isOpen |
( |
| ) |
const |
|
inline |
◆ open()
| void FileInputStream::open |
( |
std::string_view |
path | ) |
|
◆ read()
| size_t FileInputStream::read |
( |
void * |
data, |
|
|
size_t |
size |
|
) |
| |
|
overridevirtual |
- Parameters
-
| data | Output buffer to write read data into. |
| size | Number of bytes to read. |
- Returns
- Number of bytes actually read. A return value that's less than
size signals end of stream.
- Exceptions
-
Implements InputStream.
◆ seek()
| void FileInputStream::seek |
( |
ssize_t |
pos | ) |
|
◆ skip()
| size_t FileInputStream::skip |
( |
size_t |
size | ) |
|
|
overridevirtual |
- Parameters
-
| size | Number of bytes to skip. |
- Returns
- Number of bytes actually skipped. A return value that's less than
size signals end of stream.
- Exceptions
-
Implements InputStream.
◆ _file
| FILE* FileInputStream::_file = nullptr |
|
private |
◆ _path
| std::string FileInputStream::_path |
|
private |
The documentation for this class was generated from the following files: