pub unsafe extern "C-unwind" fn inflateReset2(
strm: *mut z_stream,
windowBits: c_int,
) -> i32Expand description
This function is the same as inflateReset, but it also permits changing the wrap and window size requests.
The windowBits parameter is interpreted the same as it is for inflateInit2_.
If the window size is changed, then the memory allocated for the window is freed, and the window will be reallocated by inflate if needed.
§Returns
Z_OKif successZ_STREAM_ERRORif the source stream state was inconsistent, or if thewindowBitsparameter is invalid
§Safety
The caller must guarantee that
- Either
strmisNULLstrmsatisfies the requirements of&mut *strmand was initialized withinflateInit_or similar