Skip to main content

get_str

Function get_str 

Source
pub fn get_str(payload: &[u8], off: usize, len: usize) -> Option<&str>
Expand description

Decode a UTF-8 string of len bytes from payload[off..].

Returns None if out of bounds or invalid UTF-8.