/// Reads exactly the number of bytes requested, and returns a boxed slice of the data or an
/// error.
Reads exactly the number of bytes requested, and returns a boxed slice of the data or an
error.
Reads exactly the number of bytes requested and returns a boxed slice of the data or an error .
fn read_boxed_slice_exact(&mut self, len: usize) -> io::Result<Box<[u8]>> {
        let mut buf = vec![0u8; len];
        self.read_buf_exact(&mut buf)?;
        Ok(buf.into_boxed_slice())
    }
fn read_boxed_slice_exact ( & mut self , len : usize ) -> io :: Result < Box < [ u8 ] > > { let mut buf = vec ! [ 0u8 len ] ; self . read_buf_exact ( & mut buf ) ? ; Ok ( buf . into_boxed_slice ( ) ) }
Reads exactly the number of bytes requested, and returns a boxed slice of the data or an
error.
Reads exactly the number of bytes requested and returns a boxed slice of the data or an error .
&mut self
len
usize