Function regex_automata::util::wire::read_pattern_id_unchecked
source ยท pub(crate) fn read_pattern_id_unchecked(slice: &[u8]) -> (PatternID, usize)
Expand description
Reads a pattern ID from the given slice. If the slice has insufficient length, then this panics. Otherwise, the deserialized integer is assumed to be a valid pattern ID.
This also returns the number of bytes read.