X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0915d0b2e210701353ef30743d0df9c195f76295..46d492a879f7fec474c0847dd0637593453746eb:/include/wx/zstream.h diff --git a/include/wx/zstream.h b/include/wx/zstream.h index 66be16c5df..de88e07b56 100644 --- a/include/wx/zstream.h +++ b/include/wx/zstream.h @@ -31,12 +31,14 @@ enum { // Flags enum { - wxZLIB_NO_HEADER = 1 // required for use in Gzip and Zip files + 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+ }; class WXDLLIMPEXP_BASE wxZlibInputStream: public wxFilterInputStream { public: - wxZlibInputStream(wxInputStream& stream, int flags = 0); + wxZlibInputStream(wxInputStream& stream, int flags = wxZLIB_ZLIB | wxZLIB_GZIP); virtual ~wxZlibInputStream(); char Peek() { return wxInputStream::Peek(); } @@ -57,7 +59,7 @@ class WXDLLIMPEXP_BASE wxZlibInputStream: public wxFilterInputStream { class WXDLLIMPEXP_BASE wxZlibOutputStream: public wxFilterOutputStream { public: - wxZlibOutputStream(wxOutputStream& stream, int level = -1, int flags = 0); + wxZlibOutputStream(wxOutputStream& stream, int level = -1, int flags = wxZLIB_ZLIB); virtual ~wxZlibOutputStream(); void Sync() { DoFlush(false); }