#[export_name = "inflateReset"]
pub unsafe extern "C-unwind" fn inflateReset(
strm: *mut z_stream,
) -> i32
Expand description
Equivalent to inflateEnd
followed by inflateInit_
, but does not free and reallocate the internal decompression state.
The stream will keep attributes that may have been set by inflateInit2_
.
The stream’s total_in
, total_out
, adler
, and msg
fields are initialized.
§Returns
Z_OK
if successZ_STREAM_ERROR
if the source stream state was inconsistent
§Safety
The caller must guarantee that
- Either
strm
isNULL
strm
satisfies the requirements of&mut *strm
and was initialized withinflateInit_
or similar