pub unsafe extern "C" fn BZ2_bzDecompress(
strm: *mut bz_stream,
) -> c_int
Expand description
Decompresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
§Returns
BZ_PARAM_ERROR
if any ofstrm.is_null()
strm.s.is_null()
strm.avail_out < 1
BZ_DATA_ERROR
if a data integrity error is detected in the compressed streamBZ_DATA_ERROR_MAGIC
if the compressed stream doesn’t begin with the right magic bytesBZ_MEM_ERROR
if there wasn’t enough memory availableBZ_STREAM_END
if the logical end of the data stream was detected and all output has been written to the output bufferBZ_OK
otherwise
§Safety
- Either
strm
isNULL
strm
satisfies the requirements of&mut *strm
and was initialized withBZ2_bzDecompressInit
- Either
strm.next_in
isNULL
andstrm.avail_in
is 0strm.next_in
is readable forstrm.avail_in
bytes
- Either
strm.next_out
isNULL
andstrm.avail_out
is0
strm.next_out
is writable forstrm.avail_out
bytes