parse_array

Function parse_array 

Source
pub fn parse_array<T>(
    input: &mut dyn Iterator<Item = u8>,
    length: usize,
) -> Result<Vec<T>>
where T: FromBytes, for<'a> &'a [u8]: TryInto<&'a T::Bytes>,
Expand description

Parses an array of values of type T.

ยงErrors

Returns an error if the input is less than size_of::<T>() * length bytes long.