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

#42 in Encoding

Download history 284538/week @ 2024-09-24 307522/week @ 2024-10-01 296296/week @ 2024-10-08 322335/week @ 2024-10-15 317817/week @ 2024-10-22 289555/week @ 2024-10-29 315410/week @ 2024-11-05 268455/week @ 2024-11-12 279417/week @ 2024-11-19 270776/week @ 2024-11-26 308147/week @ 2024-12-03 341392/week @ 2024-12-10 288837/week @ 2024-12-17 121629/week @ 2024-12-24 181802/week @ 2024-12-31 280293/week @ 2025-01-07

926,572 downloads per month
Used in 1,313 crates (143 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–6MB
~24K SLoC