![]() |
NDEVR
API Documentation
|
Reader implementation for gzip-compressed files using zlib's gzFile interface. More...
Public Member Functions | |
| GzReader (const std::string &p) | |
| Constructs a GzReader and opens the specified gzip file for reading. | |
| ~GzReader () override | |
| Destructor that closes the gzip file handle if open. | |
| bool | eof () const override |
| Checks whether the end of the gzip stream has been reached. | |
| bool | read_exact (u8 *dst, size_t n) override |
| Reads exactly n bytes from the gzip stream into the destination buffer. | |
Public Attributes | |
| gzFile | g = nullptr |
| The underlying zlib gzip file handle. | |
Reader implementation for gzip-compressed files using zlib's gzFile interface.
Definition at line 79 of file TarReader.h.
|
inlineexplicit |
Constructs a GzReader and opens the specified gzip file for reading.
| [in] | p | File path to open. |
Definition at line 86 of file TarReader.h.
References g.
|
inlineoverridevirtual |
Checks whether the end of the gzip stream has been reached.
Implements TAR::Reader.
Definition at line 113 of file TarReader.h.
References g.
|
inlineoverridevirtual |
Reads exactly n bytes from the gzip stream into the destination buffer.
| [in] | dst | Pointer to the destination buffer. |
| [in] | n | Number of bytes to read. |
Implements TAR::Reader.
Definition at line 99 of file TarReader.h.
References g.