X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0801f345c0867eed22cfb422b221ba23949ced8b..72c5855f5c9e6b5747dc9571d64e217eff26561d:/interface/wx/zstream.h diff --git a/interface/wx/zstream.h b/interface/wx/zstream.h index b28ca95dd2..4f12c6f46e 100644 --- a/interface/wx/zstream.h +++ b/interface/wx/zstream.h @@ -3,7 +3,7 @@ // Purpose: interface of wxZlibOutputStream // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -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); + //@} }; @@ -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); + //@} };