summaryrefslogtreecommitdiff
path: root/zlib.h
diff options
context:
space:
mode:
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();