Skip to main content

parse_from_slice

Function parse_from_slice 

Source
pub fn parse_from_slice(
    ctx: &mut Context,
    tag: u8,
    data: &[u8],
) -> Result<(BinaryTokenResult, usize), PsError>
Expand description

Parse a binary token from a byte slice. Returns the result and bytes consumed (not counting the initial tag byte, which was already consumed by the tokenizer).