pub struct ContainerParser { /* private fields */ }Expand description
Parser that detects the kind of bitstream and emits parser events.
Implementations§
Source§impl ContainerParser
impl ContainerParser
Sourcepub fn kind(&self) -> BitstreamKind
pub fn kind(&self) -> BitstreamKind
Returns the kind of this bitstream currently recognized.
Sourcepub fn feed_bytes<'inner, 'buf>(
&'inner mut self,
input: &'buf [u8],
) -> ParseEvents<'inner, 'buf> ⓘ
pub fn feed_bytes<'inner, 'buf>( &'inner mut self, input: &'buf [u8], ) -> ParseEvents<'inner, 'buf> ⓘ
Feeds bytes to the parser, and receives parser events.
The parser might not consume all of the buffer. Use previous_consumed_bytes to get how
many bytes are consumed. Bytes not consumed by the parser should be fed into the parser
again.
Sourcepub fn previous_consumed_bytes(&self) -> usize
pub fn previous_consumed_bytes(&self) -> usize
Get how many bytes are consumed by the previous call to feed_bytes.
Bytes not consumed by the parser should be fed into the parser again.
Trait Implementations§
Source§impl Debug for ContainerParser
impl Debug for ContainerParser
Source§impl Default for ContainerParser
impl Default for ContainerParser
Source§fn default() -> ContainerParser
fn default() -> ContainerParser
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContainerParser
impl RefUnwindSafe for ContainerParser
impl Send for ContainerParser
impl Sync for ContainerParser
impl Unpin for ContainerParser
impl UnwindSafe for ContainerParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more