X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7d0a28b01dc602e3b51dcc7d9046fad2da894f9..97d13342cc2ac77e21c38115cc6ebecac930f92a:/interface/wx/zstream.h diff --git a/interface/wx/zstream.h b/interface/wx/zstream.h index db994b47b6..d5e5977a51 100644 --- a/interface/wx/zstream.h +++ b/interface/wx/zstream.h @@ -37,7 +37,7 @@ enum wxZLibFlags { ::wxInvalidOffset. @library{wxbase} - @category{streams} + @category{archive,streams} @see wxOutputStream, wxZlibInputStream */ @@ -76,6 +76,19 @@ public: Returns @true if zlib library in use can handle gzip compressed data. */ static bool CanHandleGZip(); + + //@{ + /** + Sets the dictionary to the specified chunk of data. This can improve + compression rate but note that the dictionary has to be the same when + you deflate the data as when you inflate the data, otherwise you + will inflate corrupted data. + + Returns @true if the dictionary was successfully set. + */ + bool SetDictionary(const char *data, const size_t datalen); + bool SetDictionary(const wxMemoryBuffer &buf); + //@} }; @@ -91,7 +104,7 @@ public: Also wxStreamBase::GetSize() is not supported, it always returns 0. @library{wxbase} - @category{streams} + @category{archive,streams} @see wxInputStream, wxZlibOutputStream. */ @@ -122,5 +135,18 @@ public: Returns @true if zlib library in use can handle gzip compressed data. */ static bool CanHandleGZip(); + + //@{ + /** + Sets the dictionary to the specified chunk of data. This can improve + compression rate but note that the dictionary has to be the same when + you deflate the data as when you inflate the data, otherwise you + will inflate corrupted data. + + Returns @true if the dictionary was successfully set. + */ + bool SetDictionary(const char *data, const size_t datalen); + bool SetDictionary(const wxMemoryBuffer &buf); + //@} };