huff-tree-tap
Huffman Encoder and Decoder Library
Example usage
Cargo.toml:
[]
= "*" # You can specify a version here if you want
extern crate huff_tree_tap;
use *;
let data: = "this is a test string!".to_string.into_bytes;
let huffman_data: HuffmanData = huffman_encode;
let encoded_data: = huffman_data.encoded_data; // The given data encoded
let encoding_map: = huffman_data.encoding_map; // The encoding map required to decode the data