pub unsafe extern "C" fn BZ2_bzDecompressInit(
strm: *mut bz_stream,
verbosity: c_int,
small: c_int,
) -> c_int
Expand description
Prepares the stream for decompression.
§Returns
BZ_PARAM_ERROR
if any ofstrm.is_null()
!(0..=1).contains(&small)
!(0..=4).contains(&verbosity)
- no valid allocator could be configured
BZ_MEM_ERROR
if insufficient memory is availableBZ_OK
otherwise
§Safety
The caller must guarantee that
- Either
strm
isNULL
strm
satisfies the requirements of&mut *strm
- The
bzalloc
,bzfree
andopaque
fields form a valid allocator.