libz_rs_sys

Function deflateSetDictionary

Source
#[export_name = "deflateSetDictionary"]
pub unsafe extern "C-unwind" fn deflateSetDictionary(
    strm: z_streamp,
    dictionary: *const Bytef,
    dictLength: uInt,
) -> c_int
Expand description

Initializes the compression dictionary from the given byte sequence without producing any compressed output.

This function may be called after deflateInit_, deflateInit2_ or deflateReset) and before the first call of deflate.

§Returns

§Safety

The caller must guarantee that