pub unsafe extern "C-unwind" fn inflateReset(
strm: *mut z_stream,
) -> i32Expand 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_OKif successZ_STREAM_ERRORif the source stream state was inconsistent
§Safety
The caller must guarantee that
- Either
strmisNULLstrmsatisfies the requirements of&mut *strmand was initialized withinflateInit_or similar