Function BZ2_bzCompressEnd
pub unsafe extern "C" fn BZ2_bzCompressEnd(strm: *mut bz_stream) -> c_int
Deallocates all dynamically allocated data structures for this stream.
Returns
BZ_PARAM_ERRORif any ofstrm.is_null()strm.state.is_null()- no valid allocator could be configured
BZ_OKotherwise
Safety
- Either
strmisNULLstrmsatisfies the requirements of&mut *strmand was initialized withBZ2_bzCompressInit