| Index: runtime/bin/filter.h
|
| diff --git a/runtime/bin/filter.h b/runtime/bin/filter.h
|
| index 4c5975952d40aeef17b3521c585ba7936aececb0..deba37eb1793f3120901362871b40abb07681fe2 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,
|
| + bool raw = false) :
|
| + gzip_(gzip), level_(level), windowBits_(windowBits), raw_(raw),
|
| + current_buffer_(NULL)
|
| + {}
|
| virtual ~ZLibDeflateFilter();
|
|
|
| virtual bool Init();
|
| @@ -68,6 +71,8 @@ class ZLibDeflateFilter : public Filter {
|
| private:
|
| const bool gzip_;
|
| const int level_;
|
| + const int windowBits_;
|
| + const bool raw_;
|
| uint8_t* current_buffer_;
|
| z_stream stream_;
|
|
|
| @@ -76,7 +81,9 @@ class ZLibDeflateFilter : public Filter {
|
|
|
| class ZLibInflateFilter : public Filter {
|
| public:
|
| - ZLibInflateFilter() : current_buffer_(NULL) {}
|
| + ZLibInflateFilter(int windowBits = 15, bool raw = false) :
|
| + windowBits_(windowBits), raw_(raw), current_buffer_(NULL)
|
| + {}
|
| virtual ~ZLibInflateFilter();
|
|
|
| virtual bool Init();
|
| @@ -87,6 +94,8 @@ class ZLibInflateFilter : public Filter {
|
| bool end);
|
|
|
| private:
|
| + const int windowBits_;
|
| + const bool raw_;
|
| uint8_t* current_buffer_;
|
| z_stream stream_;
|
|
|
|
|