pub fn next_stream(&mut self) -> Result<()> {
        let pos = self.skip_whitespace(self.pos)?;
        if !self.buf[pos ..].starts_with(b"stream") {
            // bail!("next token isn't 'stream'");
        }
        
        let &b0 = self.buf.get(pos + 6).ok_or(PdfError::EOF)?;
        if b0 == b'\n' {
            self.pos = pos + 7;
        } else if b0 == b'\r' {
            let &b1 = self.buf.get(pos + 7).ok_or(PdfError::EOF)?;
            if b1 != b'\n' {
                bail!("invalid whitespace following 'stream'");
                // bail!("invalid whitespace following 'stream'");
            }
            self.pos = pos + 8;
        } else {
            bail!("invalid whitespace");
        }
        Ok(())
    }
/// consume the whitespace sequence following the stream start
consume the whitespace sequence following the stream start
consume the whitespace sequence following the stream start
pub fn next_stream(&mut self) -> Result<()> {
        let pos = self.skip_whitespace(self.pos)?;
        if !self.buf[pos ..].starts_with(b"stream") {
            // bail!("next token isn't 'stream'");
        }
        let &b0 = self.buf.get(pos + 6).ok_or(PdfError::EOF)?;
        if b0 == b'\n' {
            self.pos = pos + 7;
        } else if b0 == b'\r' {
            let &b1 = self.buf.get(pos + 7).ok_or(PdfError::EOF)?;
            if b1 != b'\n' {
                bail!("invalid whitespace following 'stream'");
                // bail!("invalid whitespace following 'stream'");
            }
            self.pos = pos + 8;
        } else {
            bail!("invalid whitespace");
        }
        Ok(())
    }
pub fn next_stream ( & mut self ) -> Result < ( ) > { let pos = self . skip_whitespace ( self . pos ) ? ; if ! self . buf [ pos .. ] . starts_with ( b" " ) { // bail!("next token isn't 'stream'"); } let & b0 = self . buf . get ( pos + 6 ) . ok_or ( PdfError :: EOF ) ? ; if b0 == b'\n' { self . pos = pos + 7 ; } else if b0 == b'\r' { let & b1 = self . buf . get ( pos + 7 ) . ok_or ( PdfError :: EOF ) ? ; if b1 != b'\n' { bail ! ( " " ) ; // bail!("invalid whitespace following 'stream'"); } self . pos = pos + 8 ; } else { bail ! ( " " ) ; } Ok ( ( ) ) }
consume the whitespace sequence following the stream start
consume the whitespace sequence following the stream start
&mut self
&mut self