rustyman

Crates.iorustyman
lib.rsrustyman
version0.3.0
sourcesrc
created_at2022-10-25 11:16:39.342519
updated_at2022-10-26 15:10:52.529536
descriptionHuffman compression and decompression
homepage
repositoryhttps://github.com/edg-l/rustyman/
max_upload_size
id696814
size117,291
Edgar (edg-l)

documentation

https://docs.rs/rustyman

README

rustyman

Version Downloads License Rust Docs

Huffman compression and decompression implemented in rust

Example

use rustyman::Huffman;

let payload = b"hello from the other side of the river";

let huffman = Huffman::new_from_data(payload);
let compressed = huffman.compress(payload);
let decompressed = huffman.decompress(&compressed);

assert!(compressed.len() < payload.len());
assert_eq!(&payload[..], decompressed);

License: MIT OR Apache-2.0

Commit count: 22

cargo fmt