pub trait SectionSyntaxPayloadParser {
type Context;
fn start_syntax_section<'a>(
&mut self,
ctx: &mut Self::Context,
header: &SectionCommonHeader,
table_syntax_header: &TableSyntaxHeader<'_>,
data: &'a [u8]
);
fn continue_syntax_section<'a>(
&mut self,
ctx: &mut Self::Context,
data: &'a [u8]
);
fn reset(&mut self);
}
Expand description
Trait for types that will handle MPEGTS PSI table sections with ‘section syntax’.
Required Associated Types
Required Methods
sourcefn start_syntax_section<'a>(
&mut self,
ctx: &mut Self::Context,
header: &SectionCommonHeader,
table_syntax_header: &TableSyntaxHeader<'_>,
data: &'a [u8]
)
fn start_syntax_section<'a>(
&mut self,
ctx: &mut Self::Context,
header: &SectionCommonHeader,
table_syntax_header: &TableSyntaxHeader<'_>,
data: &'a [u8]
)
NB the data
buffer passed to will include the bytes which are represented by header
and table_syntax_header
(in order that the called code can check any CRC that covers the
whole section).