pub unsafe extern "C" fn BrotliSharedDictionaryAttach(
dict: *mut BrotliSharedDictionary,
type_: BrotliSharedDictionaryType,
data_size: usize,
data: *const u8,
) -> BROTLI_BOOLExpand description
Attaches dictionary to a given instance of ::BrotliSharedDictionary.
Dictionary to be attached is represented in a serialized format as a region of memory.
Provided data it partially referenced by a resulting (compound) dictionary, and should be kept untouched, while at least one compound dictionary uses it. This way memory overhead is kept minimal by the cost of additional resource management.
@param dict dictionary to extend @param type type of dictionary to attach @param data_size size of @p data @param data serialized dictionary of type @p type, with at least @p data_size addressable bytes @returns ::BROTLI_TRUE if provided dictionary is successfully attached @returns ::BROTLI_FALSE otherwise