pub fn skip(&mut self, to: usize) -> Result<()> {
        let end = *self.cursor + to;
        self.check(end)?;
        *self.cursor = end;
        Ok(())
    }
/// Skips a certain amount of bytes and returns an error if it exceeded the limit
Skips a certain amount of bytes and returns an error if it exceeded the limit
Skips a certain amount of bytes and returns an error if it exceeded the limit
pub fn skip(&mut self, to: usize) -> Result<()> {
        let end = *self.cursor + to;
        self.check(end)?;
        *self.cursor = end;
        Ok(())
    }
pub fn skip ( & mut self , to : usize ) -> Result < ( ) > { let end = * self . cursor + to ; self . check ( end ) ? ; * self . cursor = end ; Ok ( ( ) ) }
Skips a certain amount of bytes and returns an error if it exceeded the limit
Skips a certain amount of bytes and returns an error if it exceeded the limit
&mut self
to
usize