[][src]Function miniz_oxide_c_api::tdefl_init

#[no_mangle]
pub unsafe extern "C" fn tdefl_init(
    d: Option<&mut tdefl_compressor>,
    put_buf_func: Option<unsafe extern "C" fn(_: *const c_void, _: c_int, _: *mut c_void) -> bool>,
    put_buf_user: *mut c_void,
    flags: c_int
) -> TDEFLStatus

Initialize the compressor struct in the space pointed to by d. if d is null, an error is returned.

Deinitialization is handled by tdefl_deallocate, and thus tdefl_compressor should not be allocated or freed manually, but only through tdefl_allocate and tdefl_deallocate