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

#67 in Encoding

Download history 163187/week @ 2024-03-14 173164/week @ 2024-03-21 176057/week @ 2024-03-28 178583/week @ 2024-04-04 175518/week @ 2024-04-11 182540/week @ 2024-04-18 172538/week @ 2024-04-25 171358/week @ 2024-05-02 181343/week @ 2024-05-09 186185/week @ 2024-05-16 187247/week @ 2024-05-23 193378/week @ 2024-05-30 177874/week @ 2024-06-06 190985/week @ 2024-06-13 178850/week @ 2024-06-20 154820/week @ 2024-06-27

736,725 downloads per month
Used in 1,099 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