WholeSectionSyntaxPayloadParser

Trait WholeSectionSyntaxPayloadParser 

Source
pub trait WholeSectionSyntaxPayloadParser {
    type Context;

    // Required method
    fn section<'a>(
        &mut self,
        _: &mut Self::Context,
        header: &SectionCommonHeader,
        table_syntax_header: &TableSyntaxHeader<'a>,
        data: &'a [u8],
    );
}
Expand description

Trait for types that parse fully reconstructed PSI table sections (which requires the caller to have buffered section data if it spanned multiple TS packets.

Required Associated Types§

Source

type Context

Type of the context object that will be passed to all methods.

Required Methods§

Source

fn section<'a>( &mut self, _: &mut Self::Context, header: &SectionCommonHeader, table_syntax_header: &TableSyntaxHeader<'a>, data: &'a [u8], )

Method that will receive a complete PSI table section, where the data parameter will be header.section_length bytes long

Implementors§