| 268 | } |
| 269 | |
| 270 | void ZLib::Reinit() { |
| 271 | compression_level_ = Z_DEFAULT_COMPRESSION; |
| 272 | window_bits_ = MAX_WBITS; |
| 273 | mem_level_ = 8; // DEF_MEM_LEVEL |
| 274 | if (comp_init_) { |
| 275 | deflateEnd(&comp_stream_); |
| 276 | comp_init_ = false; |
| 277 | } |
| 278 | if (uncomp_init_) { |
| 279 | inflateEnd(&uncomp_stream_); |
| 280 | uncomp_init_ = false; |
| 281 | } |
| 282 | first_chunk_ = true; |
| 283 | } |
| 284 | |
| 285 | void ZLib::Reset() { |
| 286 | first_chunk_ = true; |
nothing calls this directly
no outgoing calls
no test coverage detected