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

#46 in Encoding

Download history 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 305299/week @ 2024-10-07 302923/week @ 2024-10-14 332355/week @ 2024-10-21 282316/week @ 2024-10-28 330204/week @ 2024-11-04

1,259,653 downloads per month
Used in 1,207 crates (138 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–5.5MB
~24K SLoC