Library: Foundation
Package: Streams
Header: Poco/DeflatingStream.h
This is the streambuf class used by DeflatingInputStream and DeflatingOutputStream. 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 compression. A compression level (0 to 9) can be specified in the constructor.
Direct Base Classes: BufferedStreamBuf
All Base Classes: BufferedStreamBuf
Member Functions: close, readFromDevice, writeToDevice
DeflatingStreamBuf(
    std::istream & istr,
    StreamType type,
    int level
);
DeflatingStreamBuf(
    std::ostream & ostr,
    StreamType type,
    int level
);
int close();
 
 int readFromDevice(
    char * buffer,
    std::streamsize length
);
 
 int writeToDevice(
    const char * buffer,
    std::streamsize length
);