Index: runtime/bin/filter.h |
diff --git a/runtime/bin/filter.h b/runtime/bin/filter.h |
index 4c5975952d40aeef17b3521c585ba7936aececb0..7611ead8c22e62021fc1d0bda0e6d9043e2ddc2d 100644 |
--- a/runtime/bin/filter.h |
+++ b/runtime/bin/filter.h |
@@ -54,8 +54,11 @@ class Filter { |
class ZLibDeflateFilter : public Filter { |
public: |
- ZLibDeflateFilter(bool gzip = false, int level = 6) |
- : gzip_(gzip), level_(level), current_buffer_(NULL) {} |
+ ZLibDeflateFilter(bool gzip = false, int level = 6, int windowBits = 15, |
Anders Johnsen
2014/01/15 10:52:08
Do the arguments need a default value here (and be
vicb
2014/01/15 11:08:04
Nope, you're right, will update
vicb
2014/01/23 09:14:04
fixed
|
+ bool raw = false, int memLevel = 8) : |
+ gzip_(gzip), level_(level), windowBits_(windowBits), raw_(raw), |
+ memLevel_(memLevel), current_buffer_(NULL) |
+ {} |
virtual ~ZLibDeflateFilter(); |
virtual bool Init(); |
@@ -68,6 +71,9 @@ class ZLibDeflateFilter : public Filter { |
private: |
const bool gzip_; |
const int level_; |
+ const int windowBits_; |
+ const bool raw_; |
+ const int memLevel_; |
uint8_t* current_buffer_; |
z_stream stream_; |
@@ -76,7 +82,9 @@ class ZLibDeflateFilter : public Filter { |
class ZLibInflateFilter : public Filter { |
public: |
- ZLibInflateFilter() : current_buffer_(NULL) {} |
+ ZLibInflateFilter(int windowBits = 15, bool raw = false) : |
Anders Johnsen
2014/01/15 10:52:08
Move : to next line.
vicb
2014/01/23 09:14:04
no more relevant
|
+ windowBits_(windowBits), raw_(raw), current_buffer_(NULL) |
+ {} |
virtual ~ZLibInflateFilter(); |
virtual bool Init(); |
@@ -87,6 +95,8 @@ class ZLibInflateFilter : public Filter { |
bool end); |
private: |
+ const int windowBits_; |
+ const bool raw_; |
uint8_t* current_buffer_; |
z_stream stream_; |