Crates.io | msb128 |
lib.rs | msb128 |
version | 0.1.0 |
source | src |
created_at | 2020-11-07 12:51:37.238148 |
updated_at | 2020-11-07 12:51:37.238148 |
description | std::io::{Read, Write} positive primitive Rust integers in the Most Significant Base 128 (MSB128) variable-length encoding. |
homepage | |
repository | https://github.com/0xB10C/msb128/ |
max_upload_size | |
id | 309624 |
size | 12,987 |
std::io::{Read, Write} positive, primitive Rust integers in the Most Significant Base 128 (MSB128) variable-length encoding.
MSB128 is also known as Variable Length Quantity (VLQ) encoding and similar to the Little Endian Base 128 (LEB128) encoding (other endianness).
Each byte is encoded into 7 bits, and one is subtracted (excluding the last byte). The highest bit indicates if more bytes follow. Reading stops after a byte with the highest bit set is read or if the underlying Rust primitive overflows.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.