regex_automata::util::wire

Function 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.