Function il2_iltags::io::data::read_string[][src]

pub fn read_string(reader: &mut dyn Reader, size: usize) -> Result<String>
Expand description

Extracts an UTF-8 string from the specified Reader.

Arguments:

  • reader: The Reader;
  • size: The size in bytes;

Returns:

  • Ok(v): The value read;
  • Err(_): If the value could not be extracted;