Extremely minimal and simple LEB128 u64 encoding/decoding.
u64
let input: u64 = 42; let mut buf = Vec::new(); leb128_u64::encode(input, &mut buf); assert_eq!(leb128_u64::encoded_len(input), buf.len()); let output = leb128_u64::decode(&buf[..]); assert_eq!(input, output);