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

#47 in Encoding

Download history 96715/week @ 2023-12-12 83174/week @ 2023-12-19 57530/week @ 2023-12-26 87274/week @ 2024-01-02 119645/week @ 2024-01-09 131734/week @ 2024-01-16 129498/week @ 2024-01-23 153565/week @ 2024-01-30 145814/week @ 2024-02-06 148894/week @ 2024-02-13 166080/week @ 2024-02-20 160126/week @ 2024-02-27 161185/week @ 2024-03-05 163539/week @ 2024-03-12 170060/week @ 2024-03-19 134678/week @ 2024-03-26

660,464 downloads per month
Used in 1,063 crates (124 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