pub unsafe extern "C" fn deflateSetDictionary(
strm: z_streamp,
dictionary: *const Bytef,
dictLength: uInt,
) -> c_intExpand 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
Z_OKif successZ_STREAM_ERRORif the stream state was inconsistent
§Safety
The caller must guarantee that
- Either
strmisNULLstrmsatisfies the requirements of&mut *strmand was initialized withdeflateInit_or similar
- Either
dictionaryisNULLdictionaryanddictLengthsatisfy the requirements ofcore::slice::from_raw_parts_mut::<u8>