Qu

huffman_decode

Builtin index · File I/O

result = huffman_decode(enc, [as_str=false])

Input: enc, as_str · Output: result

What it is

Inverse of huffman_encode: enc is the whole Record that call returned, passed back unchanged; as_str (named boolean, default false) asks for text instead of bytes.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = huffman_decode(enc, [as_str=false])
enc RecordInverse of huffman_encode: enc is the whole Record that call returned, passed back unchanged.
as_str boolean, optional (default false)as_str (named boolean, default false) asks for text instead of bytes.
result Vec, number, or Str
Returns a Vec of 0-255 numbers, or the decoded text as a Str when as_str = true.

Examples

No documentation example calls this form yet. The File I/O chapter is where one belongs.