deserial_bytes

Function deserial_bytes 

Source
pub fn deserial_bytes<R>(reader: &mut R, l: usize) -> Result<Vec<u8>, Error>
where R: ReadBytesExt,
Expand description

Read a vector of the given size. NB: Be aware that this allocates a buffer of the given length, and so this must only be used when the size is bounded, otherwise it will lead to a memory allocation failure, and panic.