Helper library for reading/writing variable length integers
use ;
use ;
let mut bytes = &;
let num: u32 = bytes.get_varint;
assert_eq!;
let mut bytes = new;
bytes.put_varint;
assert_eq!;
Advantages:
- Misuse resistant - won't read more than the maximum size of the output type or past the input
- Uses tokio/bytes's
Buf no_stdandforbid(unsafe_code)