jigdo API
Zibstream Class Reference
Input stream which decompresses data. More...
#include <zstream.hh>
Public Types | |
typedef uint64 | streamsize |
Public Member Functions | |
Zibstream (unsigned bufSz=64 *1024) | |
virtual | ~Zibstream () |
Calls close(), which might throw a Zerror exception! Call close() before destroying the object to avoid this. | |
Zibstream (bistream &s, unsigned bufSz=64 *1024) | |
bool | is_open () const |
void | close () |
bistream & | getStream () |
Get reference to underlying istream. | |
Zibstream & | read (byte *x, unsigned n) |
Input 1 character. | |
streamsize | gcount () const |
Number of characters read by last read(). | |
bool | good () const |
bool | eof () const |
bool | fail () const |
bool | bad () const |
operator void * () const | |
bool | operator! () const |
Classes | |
class | Impl |
Interface for gzip and bzip2 implementors. More... |
Detailed Description
Input stream which decompresses data.Analogous to Zobstream, aware of jigdo file formats - expects a number of DATA or BZIP parts at current stream position.
Member Typedef Documentation
typedef uint64 Zibstream::streamsize |
Constructor & Destructor Documentation
Zibstream::Zibstream | ( | unsigned | bufSz = 64*1024 |
) | [inline, explicit] |
virtual Zibstream::~Zibstream | ( | ) | [inline, virtual] |
Calls close(), which might throw a Zerror exception! Call close() before destroying the object to avoid this.
References close(), and Zibstream::Impl::end().
Zibstream::Zibstream | ( | bistream & | s, | |
unsigned | bufSz = 64*1024 | |||
) | [inline] |
Member Function Documentation
void Zibstream::close | ( | ) |
References Zibstream::Impl::end(), is_open(), Zibstream::Impl::ok(), and Zibstream::Impl::throwError().
Referenced by ~Zibstream().
bistream& Zibstream::getStream | ( | ) | [inline] |
Get reference to underlying istream.
Zibstream & Zibstream::read | ( | byte * | x, | |
unsigned | n | |||
) |
Input 1 character.
Input 32 bit integer in little-endian order Input n characters
References _, Assert, Zibstream::Impl::availIn(), Zibstream::Impl::availOut(), debug, Zibstream::Impl::end(), good(), Zibstream::Impl::inflate(), Zibstream::Impl::init(), Zibstream::Impl::ok(), readBytes(), Zibstream::Impl::reset(), Zibstream::Impl::setAvailIn(), Zibstream::Impl::setNextIn(), Zibstream::Impl::streamEnd(), subst, Zibstream::Impl::throwError(), unserialize4(), and unserialize6().
streamsize Zibstream::gcount | ( | ) | const [inline] |
Number of characters read by last read().
bool Zibstream::eof | ( | ) | const [inline] |
bool Zibstream::fail | ( | ) | const [inline] |
bool Zibstream::bad | ( | ) | const [inline] |
Zibstream::operator void * | ( | ) | const [inline] |
References fail().
bool Zibstream::operator! | ( | ) | const [inline] |
References fail().
The documentation for this class was generated from the following files:
Generated on Tue Sep 23 14:27:43 2008 for jigdo by
