Function malwaredb_types::utils::string_from_offset
source · pub fn string_from_offset(contents: &[u8], offset: usize) -> 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.