Function BZ2_bzCompress

Source
pub unsafe extern "C" fn BZ2_bzCompress(
    strm: *mut bz_stream,
    action: c_int,
) -> c_int
Expand description

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

§Returns

§Safety

  • Either
    • strm is NULL
    • strm satisfies the requirements of &mut *strm and was initialized with BZ2_bzCompressInit
  • Either
    • strm.next_in is NULL and strm.avail_in is 0
    • strm.next_in is readable for strm.avail_in bytes
  • Either
    • strm.next_out is NULL and strm.avail_out is 0
    • strm.next_out is writable for strm.avail_out bytes