pub(crate) fn read_exact(&mut self, count: usize) -> Result<&'a [u8], io::Error> {
        match (self.remaining.get(..count), self.remaining.get(count..)) {
            (Some(result), Some(remaining)) => {
                self.remaining = remaining;
                self.read_count += count;
                Ok(result)
            }
            _ => Err(io::Error::from(ErrorKind::UnexpectedEof)),
        }
    }
/// Read exactly `count` bytes, reducing remaining data and incrementing read count
Read exactly `count` bytes, reducing remaining data and incrementing read count
Read exactly ` count ` bytes reducing remaining data and incrementing read count
pub(crate) fn read_exact(&mut self, count: usize) -> Result<&'a [u8], io::Error> {
        match (self.remaining.get(..count), self.remaining.get(count..)) {
            (Some(result), Some(remaining)) => {
                self.remaining = remaining;
                self.read_count += count;
                Ok(result)
            }
            _ => Err(io::Error::from(ErrorKind::UnexpectedEof)),
        }
    }
pub ( crate ) fn read_exact ( & mut self , count : usize ) -> Result < & ' a [ u8 ] , io :: Error > { match ( self . remaining . get ( .. count ) , self . remaining . get ( count .. ) ) { ( Some ( result ) , Some ( remaining ) ) => { self . remaining = remaining ; self . read_count += count ; Ok ( result ) } _ => Err ( io :: Error :: from ( ErrorKind :: UnexpectedEof ) ) , } }
Read exactly `count` bytes, reducing remaining data and incrementing read count
Read exactly ` count ` bytes reducing remaining data and incrementing read count
&mut self
count
usize
&mut self
count
usize