libz_rs_sys

Function inflateReset

Source
#[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

§Safety

The caller must guarantee that

  • Either
    • strm is NULL
    • strm satisfies the requirements of &mut *strm and was initialized with inflateInit_ or similar