summaryrefslogtreecommitdiff
path: root/zlib.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-04-08 01:28:31 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-04-08 01:28:31 +0000
commit2bb4ca7209a6b7ed86fd9c90a35c1b29df372c38 (patch)
tree158c70efa83fb2a830943cc02b9040dcf20bf351 /zlib.h
parent28a05b7a85c837025b0de2e685dfeaf0075cccf3 (diff)
downloadcryptopp-2bb4ca7209a6b7ed86fd9c90a35c1b29df372c38.tar.gz
add detection of uncompressibilty
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@156 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'zlib.h')
-rw-r--r--zlib.h6
1 files changed, 3 insertions, 3 deletions
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 &parameters, BufferedTransformation *attachment=NULL)
: Deflator(parameters, attachment) {}
unsigned int GetCompressionLevel() const;
-private:
+protected:
void WritePrestreamHeader();
void ProcessUncompressedData(const byte *string, unsigned int length);
void WritePoststreamTail();