Function read_cstring_from

Source
pub fn read_cstring_from<R: Read>(reader: &mut R) -> Result<String>
Expand description

Read a C string from a reader

§Arguments

  • reader - A reader implementing std::io::Read

§Returns

  • The string without null terminator

§Errors

  • Returns error if unable to read or invalid UTF-8