oa_gateway_agra

Function skip_past

Source
pub(crate) fn skip_past(rest: &[u8], open: &[u8], close: &[u8]) -> Option<usize>
Expand description

Bytes consumed if rest opens with open, through the matching close.

An unterminated construct consumes the remainder, which ends the scan rather than looping; the parser is what reports it as malformed.