| Crates.io | vli |
| lib.rs | vli |
| version | 0.1.0 |
| created_at | 2025-11-20 21:46:01.229+00 |
| updated_at | 2025-11-20 21:46:01.229+00 |
| description | Variable length integer encoding and decoding |
| homepage | |
| repository | https://github.com/Le0X8/vli |
| max_upload_size | |
| id | 1942654 |
| size | 7,039 |
This crate provides simple functionality to read variable length integers from binary sources that implement the Read trait. It supports different endianness options for multi-byte reads.
This crate provides:
Planned features:
You shouldn't use this crate directly, as using it through the dh crate with the vli feature enabled will make things A LOT easier for you and does use a more object-oriented approach directly on Read and Write trait objects.
Also, the dh crate handles a lot of other things that you might need when dealing with binary data, and can read variable length integers at specific positions if Seek is also implemented, so prefer using dh unless you have a specific reason not to ;)
# recommended
cargo add dh -F vli
# not recommended
cargo add vli
This project is licensed under the MIT License. See the LICENSE file for details.