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 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 270901/week @ 2024-11-11 271749/week @ 2024-11-18 276880/week @ 2024-11-25 294231/week @ 2024-12-02 350504/week @ 2024-12-09 315009/week @ 2024-12-16 116831/week @ 2024-12-23 164260/week @ 2024-12-30 307665/week @ 2025-01-06

918,332 downloads per month
Used in 1,307 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