Function read_bytes

Source
pub fn read_bytes<T: Read>(r: &mut T, size: usize) -> Result<Vec<u8>>
Expand description
  • Read some bytes, and return the bytes, without you to create a local vec![0u8; size] and scratch your head with the messy codes