[][src]Function vint32::decode_varint_slice

pub fn decode_varint_slice(data: &[u8], pos: &mut usize) -> Option<u32>

Decode a vint32-encoded unsigned 32-bit integer from a bytes slice. Maximum space required are 5 bytes. pos will be used to access the pos in the slice. pos will be incremented by the number of bytes used to dencode the u32.

Will panic if incorrectly encoded.