Skip to main content

decode_string

Function decode_string 

Source
pub fn decode_string(data: &[u8], offset: &mut usize) -> Result<String, String>
Expand description

Decode a length-prefixed UTF-8 string from data starting at *offset.

Advances *offset past the consumed bytes.