Function regex_automata::util::wire::read_state_id

source ยท
pub(crate) fn read_state_id(
    slice: &[u8],
    what: &'static str,
) -> Result<(StateID, usize), DeserializeError>
Expand description

Reads a state ID from the given slice. If the slice has insufficient length, then this panics. If the deserialized integer exceeds the state ID limit for the current target, then this returns an error.

Upon success, this also returns the number of bytes read.