Function regex_automata::util::wire::write_state_id

source ยท
pub(crate) fn write_state_id<E: Endian>(sid: StateID, dst: &mut [u8]) -> usize
Expand description

Write the given state ID to the beginning of the given slice of bytes using the specified endianness. The given slice must have length at least StateID::SIZE, or else this panics. Upon success, the total number of bytes written is returned.