diff options
author | weidai <weidai11@users.noreply.github.com> | 2004-04-08 01:28:31 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2004-04-08 01:28:31 +0000 |
commit | 3b1e3952c9ba82fea8fadf542b9cc34b3798d49c (patch) | |
tree | 158c70efa83fb2a830943cc02b9040dcf20bf351 /zlib.h | |
parent | 391a03279134a32e28523d60dd41c294cf810572 (diff) | |
download | cryptopp-git-3b1e3952c9ba82fea8fadf542b9cc34b3798d49c.tar.gz |
add detection of uncompressibilty
Diffstat (limited to 'zlib.h')
-rw-r--r-- | zlib.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -11,14 +11,14 @@ NAMESPACE_BEGIN(CryptoPP) class ZlibCompressor : public Deflator { public: - ZlibCompressor(BufferedTransformation *attachment=NULL, unsigned int deflateLevel=DEFAULT_DEFLATE_LEVEL, unsigned int log2WindowSize=DEFAULT_LOG2_WINDOW_SIZE) - : Deflator(attachment, deflateLevel, log2WindowSize) {} + ZlibCompressor(BufferedTransformation *attachment=NULL, unsigned int deflateLevel=DEFAULT_DEFLATE_LEVEL, unsigned int log2WindowSize=DEFAULT_LOG2_WINDOW_SIZE, bool detectUncompressible=true) + : Deflator(attachment, deflateLevel, log2WindowSize, detectUncompressible) {} ZlibCompressor(const NameValuePairs ¶meters, BufferedTransformation *attachment=NULL) : Deflator(parameters, attachment) {} unsigned int GetCompressionLevel() const; -private: +protected: void WritePrestreamHeader(); void ProcessUncompressedData(const byte *string, unsigned int length); void WritePoststreamTail(); |