pub fn read<R: ReadBytes>(stream: &mut R, count: usize) -> io::Result<Self> {
        let mut v = Vec::new();
        if count > 0 {
            let data = stream.read(count as u64)?;
            v.extend_from_slice(data);
        }
        Ok(Data(v))
    }
/// Read an exact number of bytes.
Read an exact number of bytes.
Read an exact number of bytes .
pub fn read<R: ReadBytes>(stream: &mut R, count: usize) -> io::Result<Self> {
        let mut v = Vec::new();
        if count > 0 {
            let data = stream.read(count as u64)?;
            v.extend_from_slice(data);
        }
        Ok(Data(v))
    }
pub fn read < R : ReadBytes > ( stream : & mut R , count : usize ) -> io :: Result < Self > { let mut v = Vec :: new ( ) ; if count > 0 { let data = stream . read ( count as u64 ) ? ; v . extend_from_slice ( data ) ; } Ok ( Data ( v ) ) }
Read an exact number of bytes.
Read an exact number of bytes .
stream
&mut R
count
usize
stream
&mut R
count
usize