| 45 | } |
| 46 | |
| 47 | Status Init() { |
| 48 | state_ = BrotliDecoderCreateInstance(nullptr, nullptr, nullptr); |
| 49 | if (state_ == nullptr) { |
| 50 | return BrotliError("Brotli init failed"); |
| 51 | } |
| 52 | return Status::OK(); |
| 53 | } |
| 54 | |
| 55 | Status Reset() override { |
| 56 | if (state_ != nullptr) { |