From 2bb4ca7209a6b7ed86fd9c90a35c1b29df372c38 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 8 Apr 2004 01:28:31 +0000 Subject: add detection of uncompressibilty git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@156 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- zlib.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'zlib.h') diff --git a/zlib.h b/zlib.h index 0fac73d..c15cf18 100644 --- a/zlib.h +++ b/zlib.h @@ -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(); -- cgit v1.2.1