pub fn decode_string(data: &[u8], offset: &mut usize) -> Result<String, String>
Decode a length-prefixed UTF-8 string from data starting at *offset.
data
*offset
Advances *offset past the consumed bytes.