Crates.io | vint32 |
lib.rs | vint32 |
version | 0.3.0 |
source | src |
created_at | 2020-12-20 17:41:26.62598 |
updated_at | 2020-12-28 09:01:54.124517 |
description | fast vint u32 encoding |
homepage | |
repository | |
max_upload_size | |
id | 324953 |
size | 26,744 |
Fast vint u32 encoding for rust. Uses at most 5 bytes.
use vint32::encode_varint_into;
let mut output = vec![];
encode_varint_into(&mut output, 50);
assert_eq!(output.len(), 1);
cargo test --all-features