| 131 | } |
| 132 | |
| 133 | Status Reset() override { |
| 134 | DCHECK(initialized_); |
| 135 | finished_ = false; |
| 136 | int ret; |
| 137 | if ((ret = inflateReset(&stream_)) != Z_OK) { |
| 138 | return ZlibError("zlib inflateReset failed: "); |
| 139 | } else { |
| 140 | return Status::OK(); |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | Result<DecompressResult> Decompress(int64_t input_len, const uint8_t* input, |
| 145 | int64_t output_len, uint8_t* output) override { |