2 releases
0.1.1 | May 8, 2023 |
---|---|
0.1.0 | May 8, 2023 |
#2169 in Encoding
108 downloads per month
5KB
66 lines
leb128-u64
Extremely minimal and simple LEB128 u64
encoding/decoding.
Example
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);
Dependencies
~175KB