Function il2_iltags::tags::serialization::deserialize_bytes_into_vec[][src]

pub fn deserialize_bytes_into_vec(
    size: usize,
    reader: &mut dyn Reader,
    vec: &mut Vec<u8>
) -> Result<()>
Expand description

Deserializes a byte array of a given size into a vector.

Arguments:

  • reader: The reader;
  • size: The number of bytes to read;
  • vec: The vector that will receive the data;

Returns:

  • Ok(v): A vector with the bytes read;
  • Err(e): In case of error;