::wxInvalidOffset.
@library{wxbase}
- @category{streams}
+ @category{archive,streams}
@see wxOutputStream, wxZlibInputStream
*/
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);
+ //@}
};
Also wxStreamBase::GetSize() is not supported, it always returns 0.
@library{wxbase}
- @category{streams}
+ @category{archive,streams}
@see wxInputStream, wxZlibOutputStream.
*/
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);
+ //@}
};