pub unsafe extern "C" fn BZ2_bzDecompress(
strm: *mut bz_stream,
) -> c_intExpand description
Decompresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
§Returns
BZ_PARAM_ERRORif any ofstrm.is_null()strm.s.is_null()strm.avail_out < 1
BZ_DATA_ERRORif a data integrity error is detected in the compressed streamBZ_DATA_ERROR_MAGICif the compressed stream doesn’t begin with the right magic bytesBZ_MEM_ERRORif there wasn’t enough memory availableBZ_STREAM_ENDif the logical end of the data stream was detected and all output has been written to the output bufferBZ_OKotherwise
§Safety
- Either
strmisNULLstrmsatisfies the requirements of&mut *strmand was initialized withBZ2_bzDecompressInit
- Either
strm.next_inisNULLandstrm.avail_inis 0strm.next_inis readable forstrm.avail_inbytes
- Either
strm.next_outisNULLandstrm.avail_outis0strm.next_outis writable forstrm.avail_outbytes