Struct mpeg2ts_reader::psi::SectionCommonHeader[][src]

pub struct SectionCommonHeader {
    pub table_id: u8,
    pub section_syntax_indicator: bool,
    pub private_indicator: bool,
    pub section_length: usize,
}

Header common to all PSI sections, whether they then use ‘section syntax’ or ‘compact syntax’.

Fields

table_id: u8

The type of table of which this is a section

section_syntax_indicator: bool

true for ’section syntax, false` for ‘compact syntax’.

private_indicator: bool

indicates that the data in the table is for private use not defined in ISO/IEC 13818-1 (section types implemented in this crate are to be used with data that has e in this field, but other crates might be written to support private table sections).

section_length: usize

the number of bytes in the section data immediately following this field (which may be more bytes than will fit into a single TS packet).

Implementations

impl SectionCommonHeader[src]

pub const SIZE: usize[src]

The fixed size of the CommonSectionHeader data in the Transport Stream; 3 bytes.

pub fn new(buf: &[u8]) -> SectionCommonHeader[src]

Parses the data in the given slice into a new SectionCommonHeader.

Panics if the slice is not exactly 3 bytes long.

Trait Implementations

impl Debug for SectionCommonHeader[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.