leb128-u64 0.1.0

Extremely minimal and simple LEB128 u64 encoding/decoding
Documentation

leb128-u64

Extremely minimal and simple LEB128 u64 encoding/decoding.

Cargo Documentation License

Example

let input: u64 = 42;
let mut buf = [0u8; 10];
leb128_u64::encode(input, &mut buf[..]);

let output = leb128_u64::decode(&buf[..]);
assert_eq!(input, output);