Function zstd_safe::create_ddict_by_reference[][src]

pub fn create_ddict_by_reference(dict_buffer: &[u8]) -> DDict

ZSTD_createDDict_byReference()

Create a digested dictionary, ready to start decompression operation without startup delay.

Dictionary content is simply referenced, and therefore stays in dictBuffer.

It is important that dictBuffer outlives DDict, it must remain read accessible throughout the lifetime of DDict