read_null_terminated_string

Macro read_null_terminated_string 

Source
macro_rules! read_null_terminated_string {
    ($source:expr, $count:expr) => { ... };
}
Expand description

Reads a null-terminated ASCII string from the given source. If the string is not null-terminated within [$count] bytes, this will evaluate to a string with all [$count] bytes. The string is created with [String::from_utf8_lossy].