Library: Foundation
Package: Streams
Header: Poco/InflatingStream.h
This is the streambuf class used by InflatingInputStream and InflatingOutputStream. The actual work is delegated to zlib 1.2.1 (see http://www.gzip.org). Both zlib (deflate) streams and gzip streams are supported. Output streams should always call close() to ensure proper completion of decompression.
Direct Base Classes: BufferedStreamBuf
All Base Classes: BufferedStreamBuf
Member Functions: close, readFromDevice, reset, writeToDevice
InflatingStreamBuf(
std::istream & istr,
StreamType type
);
InflatingStreamBuf(
std::ostream & ostr,
StreamType type
);
int close();
void reset();
int readFromDevice(
char * buffer,
std::streamsize length
);
int writeToDevice(
const char * buffer,
std::streamsize length
);