Function regex_automata::util::wire::write_label_len

source ยท
pub(crate) fn write_label_len(label: &str) -> usize
Expand description

Returns the total number of bytes (including padding) that would be written for the given label. This panics if the given label contains a NUL byte or is longer than 255 bytes. (The size restriction exists so that searching for a label during deserialization can be done in small bounded space.)