Skip to main content

expect_tag

Function expect_tag 

Source
pub fn expect_tag(buf: &[u8], pos: &mut usize, expected: u8) -> Option<()>
Expand description

Read the tag byte at pos and advance; None if it is not expected.