
huff-tree-tap
Huffman Encoder and Decoder Library
Example usage
Cargo.toml:
toml
[dependencies]
huff_tree_tap = "*" # You can specify a version here if you want
```rust
extern crate hufftreetap;
use hufftreetap::*;
let data: Vec = "this is a test string!".tostring().intobytes();
let huffmandata: HuffmanData = huffmanencode(&data);
let encodeddata: Vec = huffmandata.encodeddata; // The given data encoded
let encodingmap: HashMap = huffmandata.encodingmap; // The encoding map required to decode the data
```