Rust Library for Compressing big integers.

A rust library for compressing and decompressing big integers. Note that the library is still under heavy development and breaking changes may occur.

Example

``` let num = 1234u32;

let compressed = Unsigned::compress61439(num).unwrap(); let decompressed = Unsigned::decompress61439(compressed.to_vec()).unwrap();

println!("size before compression: {}", num.tobebytes().len()); //size before compression: 4

println!("size after compression: {}", compressed.len()); //size after compression: 2

println!("{}", decompressed == num); //true ```

Performance

TODO!

Features

A coffee?

"Buy Me A Coffee"