Skip to main content

encoded_string_len

Function encoded_string_len 

Source
pub(crate) fn encoded_string_len(bytes: &[u8]) -> Result<usize>
Expand description

Finds the checked boundary of an Option, shared by Dense and Sparse. This validates framing, not UTF-8; consumers decoding strings validate UTF-8.