#unsigned #varint #encode #integer

no-std uvint

uvint - unsigned varint encoding

Show the crate…

1 unstable release

0.6.0 Mar 3, 2021

#29 in #unsigned

MIT license

28KB
431 lines

uvint - unsigned-varint encoding

Unsigned varint encodes unsigned integers in 7-bit groups. The most significant bit (MSB) in each byte indicates if another byte follows (MSB = 1), or not (MSB = 0).

For details see: https://github.com/multiformats/unsigned-varint


lib.rs:

Unsigned varint encodes unsigned integers in 7-bit groups. The most significant bit (MSB) in each byte indicates if another byte follows (MSB = 1), or not (MSB = 0).

Dependencies

~0–1.5MB
~27K SLoC