pub struct ParsedDescriptorLoop<'a> { /* private fields */ }Expand description
Parsed descriptor loop retaining the raw bytes and the typed descriptor results.
Usually backed by a single section’s descriptor loop, but a table-wide
loop that a spec allows to split across sections (e.g. NIT §5.2.1 / BAT
§5.2.2’s network_descriptors_loop / bouquet_descriptors_loop, one per
section) is built by concatenating each section’s loop internally:
raw() then yields one entry per contributing section, in section
order, and descriptors() is their concatenation in the same order.
Implementations§
Source§impl<'a> ParsedDescriptorLoop<'a>
impl<'a> ParsedDescriptorLoop<'a>
Sourcepub fn raw(&self) -> &[DescriptorLoop<'a>]
pub fn raw(&self) -> &[DescriptorLoop<'a>]
Raw descriptor-loop bytes, one entry per contributing section (in section order). Almost always a single entry.
Use raw()[i].iter_with_extensions(&desc_reg, &ext_reg) to recover
custom extension bodies from a Complete* view.
Sourcepub fn descriptors(&self) -> &[Result<AnyDescriptor<'a>>] ⓘ
pub fn descriptors(&self) -> &[Result<AnyDescriptor<'a>>] ⓘ
Typed descriptor parse results in wire order (concatenated across every contributing section for a multi-section loop).