Encode and decode with a variant of variable-length quantity data.
The algorithm uses leading zeros to count how many bytes are required for decoding.
Add this to your Cargo.toml
:
toml
[dependencies]
fastvlq = "1"
Licensed under either of
at your option.