Crate huffman [] [src]

Huffman is a library to decode huffman-encoded data.

Usage

Create a Huffman Tree and call the decode function to decode the input.

Structs

Tree

A huffman tree.

Functions

decode

Decode the huffman-encoded input using the Huffman tree. The decoding ends when decompressed_size is reached.

decode_with_offset

Decode the huffman-encoded input using the Huffman tree. The decoding starts at input + offset, where offset is the number bits to skip (number between 0 and 8). The decoding ends when decompressed_size is reached.