struct

Huffman::Node

Inherits Struct < Value < Object

Constructors

new(parent : Int32 = -1, left : Int32 = -1, right : Int32 = -1, count : Int64 = Int64::MAX, binary : Bool = false)
Source

Class methods

from_io(io : IO, format : IO::ByteFormat)
Source

Instance methods

binary
Source
binary=(binary : Bool)
Source
count
Source
count=(count : Int64)
Source
leaf?
Source
left
Source
left=(left : Int32)
Source
parent
Source
parent=(parent : Int32)
Source
right
Source
right=(right : Int32)
Source
to_io(io : IO, format : IO::ByteFormat)
Source