libz_rs_sys

Function inflateBackInit_

Source
#[export_name = "inflateBackInit_"]
pub unsafe extern "C-unwind" fn inflateBackInit_(
    _strm: z_streamp,
    _windowBits: c_int,
    _window: *mut c_uchar,
    _version: *const c_char,
    _stream_size: c_int,
) -> c_int
Expand description

Initializes the state for decompression

§Returns

  • Z_OK if success
  • Z_MEM_ERROR if there was not enough memory
  • Z_VERSION_ERROR if the zlib library version is incompatible with the version assumed by the caller
  • Z_STREAM_ERROR if a parameter is invalid, such as a null pointer to the structure

§Safety

The caller must guarantee that

  • Either
    • strm is NULL
    • strm satisfies the requirements of &mut *strm
  • Either
  • If strm is not NULL, the following fields contain valid values
    • zalloc
    • zfree
    • opaque