string_from_offset

Function string_from_offset 

Source
pub fn string_from_offset(contents: &[u8], offset: usize) -> Option<String>
Expand description

Try to get a String from a byte buffer, get a lossy String if it wasn’t UTF-8, or get a hex string as a last resort.