class Huffman
- Huffman
- Reference
- Object
Overview
TODO Write documentation for Huffman
Defined in:
huffman.crhuffman/version.cr
Constant Summary
-
VERSION =
"0.1.0"
Constructors
Class Method Summary
- .compile(counts : Array(Int32), desc : Bool = false)
- .compile(counts : Array(Int64), desc : Bool = false)
- .from_io(io : IO, format : IO::ByteFormat)
Instance Method Summary
- #binary(id : Int32)
- #count(id : Int32)
- #leaf?(id : Int32)
- #leaf_num : Int32
- #left(id : Int32)
- #node(id : Int32) : Pointer(Node)
- #path_code(id : Int32)
- #path_codes(&)
- #path_codes
- #right(id : Int32)
- #to_io(io : IO, format : IO::ByteFormat)
Constructor Detail
def self.new(tree : Array(Huffman::Node), ids : Nil | Array(Int32), leaf_num : Int32)
#