Skip to main content

skip_sub_blocks

Function skip_sub_blocks 

Source
fn skip_sub_blocks(bytes: &[u8], at: usize) -> Option<usize>
Expand description

Offset past the sub-block chain starting here, when it ends.

Each block announces its own length and a zero length closes the chain, so every pass clears at least the length byte and a chain that neither closes nor runs out of picture cannot occur.