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.
srcis too small and does not include the frame header.srcis not a valid zstd frame prefix.