#[export_name = "inflateInit_"]
pub unsafe extern "C-unwind" fn inflateInit_(
strm: z_streamp,
version: *const c_char,
stream_size: c_int,
) -> c_int
Expand description
Initializes the state for decompression
A call to inflateInit_
is equivalent to inflateInit2_
where windowBits
is 15.
§Returns
Z_OK
if successZ_MEM_ERROR
if there was not enough memoryZ_VERSION_ERROR
if the zlib library version is incompatible with the version assumed by the callerZ_STREAM_ERROR
if a parameter is invalid, such as a null pointer to the structure
§Safety
The caller must guarantee that
- Either
strm
isNULL
strm
satisfies the requirements of&mut *strm
- Either
version
is NULLversion
satisfies the requirements ofcore::ffi::CStr::from_ptr
- If
strm
is notNULL
, the following fields contain valid valueszalloc
zfree
opaque