Skip to main content

parse_declared_sections

Function parse_declared_sections 

Source
pub fn parse_declared_sections<'a, I>(
    lines: &mut Peekable<I>,
    header: &mut FrameHeader,
    atom_data: &mut [AtomDatum],
) -> Result<(), ParseError>
where I: Iterator<Item = &'a str>,
Expand description

Parses declared sections from a frame’s header metadata.

If header.sections is non-empty (v2 file with "sections" key in JSON), parses each declared section in order. Otherwise falls back to legacy blank-separator velocity detection.