This filter stream decompresses a stream that is in zlib or gzip format. Note that reading the gzip format requires zlib version 1.2.0 greater.
The stream is not seekable, SeekI() returns wxInvalidOffset. Also GetSize() is not supported, it always returns 0.
Derived from
Include files
<wx/zstream.h>
See also
wxInputStream, wxZlibOutputStream.
Members
wxZlibInputStream(wxInputStream& stream, int flags = wxZLIB_ZLIB | wxZLIB_GZIP)
The flags wxZLIB_ZLIB and wxZLIB_GZIP specify whether the input data is in zlib or gzip format. If both are used, bitwise ored, then zlib will autodetect the stream type, this is the default. If flags is zero, then the data is assumed to be a raw deflate stream without either zlib or gzip headers.
The following symbols can be use for the flags:
// Flags enum { wxZLIB_NO_HEADER = 0, // raw deflate stream, no header or checksum wxZLIB_ZLIB = 1, // zlib header and checksum wxZLIB_GZIP = 2 // gzip header and checksum, requires zlib 1.2+ };