An open API service indexing awesome lists of open source software.

https://github.com/bbqsrc/fastvlq

A fast variant of Variable-Length Quantity with a focus on speed and no_std support.
https://github.com/bbqsrc/fastvlq

no-std rust u64 varint vlq

Last synced: 9 months ago
JSON representation

A fast variant of Variable-Length Quantity with a focus on speed and no_std support.

Awesome Lists containing this project

README

          

# fastvlq

[![Actions Status](https://github.com/bbqsrc/fastvlq/workflows/CI/badge.svg)](https://github.com/bbqsrc/fastvlq/actions)
[![Documentation](https://docs.rs/fastvlq/badge.svg)](https://docs.rs/fastvlq)

Encode and decode with a variant of [variable-length quantity](https://en.wikipedia.org/wiki/Variable-length_quantity) data.

The algorithm uses leading zeros to count how many bytes are required for decoding.

## Usage

Add this to your `Cargo.toml`:

```toml
[dependencies]
fastvlq = "1"
```

## Where is this used?

* [box](https://github.com/bbqsrc/box) - a modern replacement for the zip file format

## License

Licensed under either of

* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)

at your option.