Skip to main content

parse_loop

Function parse_loop 

Source
pub fn parse_loop(bytes: &[u8]) -> DescriptorIter<'_> 
Expand description

Lazily walk a raw descriptor loop. Never panics.

Per-descriptor parse errors yield Err and iteration continues (the descriptor_length field bounds each entry, so the walker can always advance past a malformed body). A truncated final header or body yields one Err and then the iterator fuses (returns None forever after).