varinteger
Rust module for encoding/decoding varints that doesn't do any IO. Inspired by the Node.js varint module.
Usage
extern crate varinteger;
let mut buf = ;
// encode 1000 as a varint into buf. returns how many bytes it wrote
let bytes_encoded = encode;
let mut value = 0u64;
let bytes_decoded = decode;
println!;
License
MIT