81 , m_chunk_size(chunk_size)
87 throw InvalidException(
"BackBuffer() initialized with an invalid input stream.");
91 throw InvalidException(
"Invalid chunk_size parameter, it has to be larger than zero.");
103 throw IOException(
"Invalid virtual file endings.");
Various exceptions used throughout the Zipios++ library, all based on zipios::Exception.
void zipRead(std::istream &is, uint32_t &value)
A virtual class used to see in a file embedded in another.
An IOException is used to signal an I/O error.
BackBuffer(std::istream &is, VirtualSeeker const &vs=VirtualSeeker(), ssize_t const chunk_size=1024)
The header file for zipios::BackBuffer.
void vseekg(std::istream &is, offset_t offset, std::ios::seekdir sd) const
Seek within the embedded file.
An InvalidException is used when invalid data is provided.
ssize_t readChunk(ssize_t &read_pointer)
Read a chunk of data.
std::streampos m_file_pos
std::streampos vtellg(std::istream &is) const
Current position within the sub-file.