pub unsafe extern "C" fn BZ2_bzDecompressInit(
strm: *mut bz_stream,
verbosity: c_int,
small: c_int,
) -> c_intExpand description
Prepares the stream for decompression.
§Returns
BZ_PARAM_ERRORif any ofstrm.is_null()!(0..=1).contains(&small)!(0..=4).contains(&verbosity)- no valid allocator could be configured
BZ_MEM_ERRORif insufficient memory is availableBZ_OKotherwise
§Safety
The caller must guarantee that
- Either
strmisNULLstrmsatisfies the requirements of&mut *strm
- The
bzalloc,bzfreeandopaquefields form a valid allocator.