pub(crate) fn read_until<F: Fn(&u8) -> bool>(&mut self, f: F) -> Result<&'a [u8], io::Error> {
        match self.remaining.iter().position(f) {
            None => self.read_exact(self.remaining.len()),
            Some(position) => self.read_exact(position),
        }
    }
/// Read bytes until the provided predicate is true
Read bytes until the provided predicate is true
Read bytes until the provided predicate is true
pub(crate) fn read_until<F: Fn(&u8) -> bool>(&mut self, f: F) -> Result<&'a [u8], io::Error> {
        match self.remaining.iter().position(f) {
            None => self.read_exact(self.remaining.len()),
            Some(position) => self.read_exact(position),
        }
    }
pub ( crate ) fn read_until < F : Fn ( & u8 ) -> bool > ( & mut self , f : F ) -> Result < & ' a [ u8 ] , io :: Error > { match self . remaining . iter ( ) . position ( f ) { None => self . read_exact ( self . remaining . len ( ) ) , Some ( position ) => self . read_exact ( position ) , } }
Read bytes until the provided predicate is true
Read bytes until the provided predicate is true
&mut self
f
F
&mut self
f
F