libz_rs_sys

Function compressBound

Source
#[export_name = "compressBound"]
pub extern "C-unwind" fn compressBound(sourceLen: c_ulong) -> c_ulong
Expand description

Returns an upper bound on the compressed size after compress or compress2 on sourceLen bytes.

Can be used before a compress or compress2 call to allocate the destination buffer.