Skip to content

Extremely minimal and simple LEB128 u64 encoding/decoding

License

Notifications You must be signed in to change notification settings

tokarevart/leb128-u64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Extremely minimal and simple LEB128 u64 encoding/decoding

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages