pub unsafe extern "C" fn fz_new_deflated_data_from_buffer(
    ctx: *mut fz_context,
    compressed_length: *mut usize,
    buffer: *mut fz_buffer,
    level: fz_deflate_level
) -> *mut c_uchar
Expand description

Compress the contents of a fz_buffer into a new block malloced for that purpose. *compressed_length is updated on exit to contain the size used. Ownership of the block is returned from this function, and the caller is therefore responsible for freeing it. The block may be considerably larger than is actually required. The caller is free to fz_realloc it down if it wants to.