Skip to main content

cstr_field

Function cstr_field 

Source
pub fn cstr_field(buf: &[u8]) -> String
Expand description

Trim a NUL-terminated fixed-size C string field into a String.

Reads up to the first NUL and ignores the rest of the buffer. Returns an empty string when the field was never written, which is how an unfilled pNext chain presents.