class Huffman

Overview

TODO Write documentation for Huffman

Defined in:

huffman.cr
huffman/version.cr

Constant Summary

VERSION = "0.1.0"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(tree : Array(Huffman::Node), ids : Nil | Array(Int32), leaf_num : Int32) #

[View source]

Class Method Detail

def self.compile(counts : Array(Int32), desc : Bool = false) #

[View source]
def self.compile(counts : Array(Int64), desc : Bool = false) #

[View source]
def self.from_io(io : IO, format : IO::ByteFormat) #

[View source]

Instance Method Detail

def binary(id : Int32) #

[View source]
def count(id : Int32) #

[View source]
def leaf?(id : Int32) #

[View source]
def leaf_num : Int32 #

[View source]
def left(id : Int32) #

[View source]
def node(id : Int32) : Pointer(Node) #

[View source]
def path_code(id : Int32) #

[View source]
def path_codes(&) #

[View source]
def path_codes #

[View source]
def right(id : Int32) #

[View source]
def to_io(io : IO, format : IO::ByteFormat) #

[View source]