![]() |
NDEVR
API Documentation
|
Reader implementation for uncompressed files using std::ifstream. More...
Public Member Functions | |
| FileReader (const std::string &p) | |
| Constructs a FileReader and opens the specified file in binary mode. | |
| bool | eof () const override |
| Checks whether the end of the file has been reached. | |
| bool | read_exact (u8 *dst, size_t n) override |
| Reads exactly n bytes from the file into the destination buffer. | |
Public Attributes | |
| std::ifstream | f |
| The underlying file input stream. | |
Reader implementation for uncompressed files using std::ifstream.
Definition at line 49 of file TarReader.h.
|
inlineexplicit |
Constructs a FileReader and opens the specified file in binary mode.
| [in] | p | File path to open. |
Definition at line 56 of file TarReader.h.
References f.
|
inlineoverridevirtual |
Checks whether the end of the file has been reached.
Implements TAR::Reader.
Definition at line 73 of file TarReader.h.
References f.
|
inlineoverridevirtual |
Reads exactly n bytes from the file into the destination buffer.
| [in] | dst | Pointer to the destination buffer. |
| [in] | n | Number of bytes to read. |
Implements TAR::Reader.
Definition at line 64 of file TarReader.h.
References f.