Help language development. Donate to The Perl Foundation

Encoding::Huffman::PP6 zef:tony-o last updated on 2021-02-15


Huffman Encoding in pure perl6

What a joy.

Subs provided + signatures


sub huffman-encode(Str $string-to-encode, %table?)


The string you wish to encode


The encoding table you'd like to use. Defaults to the HTTP2 spec's predefined huffman table found here


sub huffman-decode(Buf[uint8] $buffer-to-decode, %table?)


A Buf[uint8] that you wish to decode


Please reference above.