[][src]Function miniz_oxide_c_api::tinfl_decompress_mem_to_heap

#[no_mangle]
pub unsafe extern "C" fn tinfl_decompress_mem_to_heap(
    p_src_buf: *const c_void,
    src_buf_len: size_t,
    p_out_len: *mut size_t,
    flags: c_int
) -> *mut c_void

Decompress data from p_src_buf to a continuously growing heap-allocated buffer.

Sets p_out_len to the length of the returned buffer. Returns ptr::null() if decompression or allocation fails. The buffer should be freed with miniz_def_free_func.