Skip to main content

up_iter

Function up_iter 

Source
pub fn up_iter<'a>(
    data: &'a [u8],
    bbheader: &Bbheader,
) -> Box<dyn Iterator<Item = [u8; 188]> + 'a>
Expand description

Build an appropriate user-packet iterator for the given BBHEADER.

Returns either an NM or HEM iterator depending on the detected mode. The caller must handle SYNCD alignment before calling this — typically by skipping syncd / 8 bytes at the start of the data field.