WithHeader

Trait WithHeader 

Source
pub trait WithHeader<'buf>: Bufer<'buf> {
    // Provided methods
    fn b(&self) -> &'buf [u8]  { ... }
    fn table_id(&self) -> TableID { ... }
    fn section_syntax_indicator(&self) -> bool { ... }
    fn section_length(&self) -> u16 { ... }
    fn sz(&self) -> usize { ... }
}

Provided Methods§

Source

fn b(&self) -> &'buf [u8]

buffer seeked

Source

fn table_id(&self) -> TableID

Source

fn section_syntax_indicator(&self) -> bool

if set to 1 (true) - 4th and 5th bytes are table-id-extension

must be set to 1 for: PAT, CAT, PMT NIT, EIT, BAT, SDT

Source

fn section_length(&self) -> u16

Source

fn sz(&self) -> usize

complete section length

Implementors§

Source§

impl<'buf> WithHeader<'buf> for EIT<'buf>

Source§

impl<'buf> WithHeader<'buf> for PAT<'buf>

Source§

impl<'buf> WithHeader<'buf> for PMT<'buf>

Source§

impl<'buf> WithHeader<'buf> for SDT<'buf>