read_c_string

Function read_c_string 

Source
pub fn read_c_string(bytes: &[u8], offset: usize) -> String
Expand description

Reads a variable-length null-terminated string from a byte buffer.

Scans from offset to the first null byte (or end of buffer), then decodes the preceding bytes as Windows-1252.