Skip to main content

walk_fields

Function walk_fields 

Source
pub fn walk_fields(
    b: &[u8],
    f: impl FnMut(u16, u8, &mut FieldReader<'_>) -> Result<(), Error>,
) -> Result<(), Error>
Expand description

Calls f for each field; unknown tags should be skipped via the reader. f may call u64/bytes exactly once for the current field, or skip.