The inflateReset() function shall reset all state
associated with stream.
All pending output shall be discarded, and the counts of processed
total_out) shall be reset to zero.
On success, inflateReset() shall return Z_OK. Otherwise it shall return Z_STREAM_ERROR to indicate the error.
On error, inflateReset() shall return Z_STREAM_ERROR. The following conditions shall be treated as an error:
The state in stream is inconsistent or inappropriate.