pub struct DDict<'a>(_, _);
Expand description
A digested decompression dictionary.
Implementations§
source§impl<'a> DDict<'a>
impl<'a> DDict<'a>
pub fn sizeof(&self) -> usize
sourcepub fn create_by_reference(dict_buffer: &'a [u8]) -> DDict<'a>
pub fn create_by_reference(dict_buffer: &'a [u8]) -> DDict<'a>
Wraps the ZSTD_createDDict_byReference()
function.
The dictionary will keep referencing dict_buffer
.
sourcepub fn get_dict_id(&self) -> Option<NonZeroU32>
pub fn get_dict_id(&self) -> Option<NonZeroU32>
Returns the dictionary ID for this dict.
Returns None
if this dictionary is empty or invalid.