CompactSyntaxPayloadParser

Trait CompactSyntaxPayloadParser 

Source
pub trait CompactSyntaxPayloadParser {
    type Context;

    // Required methods
    fn start_compact_section(
        &mut self,
        ctx: &mut Self::Context,
        header: &SectionCommonHeader,
        data: &[u8],
    );
    fn continue_compact_section(&mut self, ctx: &mut Self::Context, data: &[u8]);
    fn reset(&mut self);
}
Expand description

Trait for types that will handle MPEGTS PSI table sections with ‘compact syntax’.

Required Associated Types§

Source

type Context

The type of the context object passed to all methods

Required Methods§

Source

fn start_compact_section( &mut self, ctx: &mut Self::Context, header: &SectionCommonHeader, data: &[u8], )

NB the data buffer passed to will include the bytes which are represented by header (in order that the called code can check any CRC that covers the whole section).

Source

fn continue_compact_section(&mut self, ctx: &mut Self::Context, data: &[u8])

may be called to pass the implementation additional slices of section data, if the complete section was not already passed.

Source

fn reset(&mut self)

called if there is a problem in the transport stream that means any in-progress section data should be discarded.

Implementors§