Skip to main content

read_unsigned_varint

Function read_unsigned_varint 

Source
fn read_unsigned_varint<const N: usize>(
    data: &mut &[u8],
    tag: Tag,
    first: Tag,
) -> [u8; N]
Expand description

Read the payload of an unsigned variable-length integer, zero-extended to N bytes.

As read_signed_varint, without the sign.

ยงCorrectness

tag must belong to the family starting at first, and data must hold its payload.