Function zstd_safe::get_dict_id_from_frame
source ยท pub fn get_dict_id_from_frame(src: &[u8]) -> Option<NonZeroU32>
Expand description
Wraps the ZSTD_getDictID_fromFrame()
function.
Returns None
if the dictionary ID could not be decoded. This may happen if:
- The frame was not encoded with a dictionary.
- The frame intentionally did not include dictionary ID.
- The dictionary was non-conformant.
src
is too small and does not include the frame header.src
is not a valid zstd frame prefix.