leb128-u64 0.1.1

Extremely minimal and simple LEB128 u64 encoding/decoding
Documentation
  • Coverage
  • 25%
    1 out of 4 items documented1 out of 4 items with examples
  • Size
  • Source code size: 17.91 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 606.18 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • tokarevart/leb128-u64
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tokarevart

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