Function BZ2_bzDecompress

pub unsafe extern "C" fn BZ2_bzDecompress(strm: *mut bz_stream) -> c_int

Decompresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.

Returns

Note: the bzip2 manual documents strm.avail_out < 1 as a BZ_PARAM_ERROR condition, but does not actually check for it, and neither do we. Calling with avail_out == 0 returns BZ_OK with no output written; the caller should increase avail_out and retry.

Safety