Skip to main content

read_str_advance

Function read_str_advance 

Source
pub fn read_str_advance<'a>(buf: &'a [u8], off: &mut usize) -> Option<&'a str>
Expand description

Read a string slice at *off, advancing *off past it. Zero-copy. Returns None for non-string types, invalid UTF-8, or truncated input.