Function miniz_oxide_c_api::tdefl_init[][src]

#[no_mangle]
pub unsafe extern "C" fn tdefl_init(
    d: Option<&mut Compressor>,
    put_buf_func: Option<unsafe extern "C" fn(_: *const c_void, _: c_int, _: *mut c_void) -> i32>,
    put_buf_user: *mut c_void,
    flags: c_int
) -> tdefl_status
Expand description

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 Compressor should not be allocated or freed manually, but only through tdefl_allocate and tdefl_deallocate