Function regex_automata::util::wire::try_read_state_id
source ยท pub(crate) fn try_read_state_id(
slice: &[u8],
what: &'static str,
) -> Result<(StateID, usize), DeserializeError>
Expand description
Attempts to read a state ID from the given slice. If the slice has an insufficient number of bytes or if the state ID exceeds the limit for the current target, then this returns an error.
Upon success, this also returns the number of bytes read.