Skip to main content

extract_utf16le

Function extract_utf16le 

Source
pub fn extract_utf16le(bytes: &[u8], min_len: usize) -> Vec<String>
Expand description

Extract UTF-16LE strings of at least min_len printable chars from bytes.

Detects runs where every second byte is 0x00 and the preceding byte is a printable ASCII character (0x20 – 0x7E). This is a fast heuristic; it will not decode arbitrary Unicode code points outside the ASCII range.