pub fn read_bytes(&mut self, count: usize) -> Result<&'a [u8]> {
        let end = *self.cursor + count;
        self.check(end)?;

        let bytes = &self.bytes[*self.cursor..end];
        *self.cursor = end;
        Ok(bytes)
    }
/// Reads a specific amount of bytes.
/// If not enough bytes are available, an EOF error is returned.
Reads a specific amount of bytes.
If not enough bytes are available, an EOF error is returned.
Reads a specific amount of bytes . If not enough bytes are available an EOF error is returned .
pub fn read_bytes(&mut self, count: usize) -> Result<&'a [u8]> {
        let end = *self.cursor + count;
        self.check(end)?;
        let bytes = &self.bytes[*self.cursor..end];
        *self.cursor = end;
        Ok(bytes)
    }
pub fn read_bytes ( & mut self , count : usize ) -> Result < & ' a [ u8 ] > { let end = * self . cursor + count ; self . check ( end ) ? ; let bytes = & self . bytes [ * self . cursor .. end ] ; * self . cursor = end ; Ok ( bytes ) }
Reads a specific amount of bytes.
Reads a specific amount of bytes .
&mut self
count
usize