17 releases

0.8.0 Nov 1, 2023
0.7.1 Nov 8, 2021
0.7.0 Feb 4, 2021
0.5.1 Sep 8, 2020
0.2.1 Sep 5, 2018

#50 in Encoding

Download history 110817/week @ 2024-01-08 135066/week @ 2024-01-15 128320/week @ 2024-01-22 148011/week @ 2024-01-29 148866/week @ 2024-02-05 147223/week @ 2024-02-12 164493/week @ 2024-02-19 161889/week @ 2024-02-26 158078/week @ 2024-03-04 163653/week @ 2024-03-11 164855/week @ 2024-03-18 173205/week @ 2024-03-25 183392/week @ 2024-04-01 174901/week @ 2024-04-08 177706/week @ 2024-04-15 178999/week @ 2024-04-22

722,890 downloads per month
Used in 1,070 crates (125 directly)

MIT license

29KB
456 lines

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.4MB
~25K SLoC