Function read_varint

Source
pub(crate) fn read_varint(buf: &[u8]) -> Option<(u64, usize)>
Expand description

Read a varint from buf returning the decoded u64 and the number of bytes read