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

#56 in Encoding

Download history 195211/week @ 2024-06-24 171426/week @ 2024-07-01 192268/week @ 2024-07-08 229693/week @ 2024-07-15 230099/week @ 2024-07-22 220809/week @ 2024-07-29 209381/week @ 2024-08-05 261951/week @ 2024-08-12 230693/week @ 2024-08-19 223347/week @ 2024-08-26 235641/week @ 2024-09-02 223905/week @ 2024-09-09 251875/week @ 2024-09-16 284732/week @ 2024-09-23 297640/week @ 2024-09-30 294875/week @ 2024-10-07

1,139,146 downloads per month
Used in 1,160 crates (131 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–6.5MB
~24K SLoC