leb128-u64

Crates.ioleb128-u64
lib.rsleb128-u64
version0.1.1
sourcesrc
created_at2023-05-08 14:17:07.631728
updated_at2023-05-08 18:03:52.576769
descriptionExtremely minimal and simple LEB128 u64 encoding/decoding
homepage
repositoryhttps://github.com/tokarevart/leb128-u64
max_upload_size
id859842
size5,236
Artem Tokarev (tokarevart)

documentation

README

leb128-u64

Extremely minimal and simple LEB128 u64 encoding/decoding.

Cargo Documentation License

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);
Commit count: 2

cargo fmt