https://github.com/pseitz/vint32_rust
fast vint u32 encoding for rust
https://github.com/pseitz/vint32_rust
Last synced: 12 months ago
JSON representation
fast vint u32 encoding for rust
- Host: GitHub
- URL: https://github.com/pseitz/vint32_rust
- Owner: PSeitz
- Created: 2020-12-20T17:32:57.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-28T08:54:59.000Z (over 5 years ago)
- Last Synced: 2025-06-01T03:04:47.839Z (about 1 year ago)
- Language: Rust
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Vint32
Fast vint u32 encoding for rust. Uses at most 5 bytes.
# Examples
```
use vint32::encode_varint_into;
let mut output = vec![];
encode_varint_into(&mut output, 50);
assert_eq!(output.len(), 1);
```
## Tests
`cargo test --all-features`