Skip to main content

skip_or_accept

Function skip_or_accept 

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

Skip a variable-length JPEG segment, or return None when the segment is malformed (signals the caller to accept the whole remaining buffer).