huffman

package
v0.0.0-...-e7cd003 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HNode

type HNode struct {
	// contains filtered or unexported fields
}

func (*HNode) Byte

func (hnode *HNode) Byte() byte

type HTree

type HTree struct {
	// contains filtered or unexported fields
}

func BuildHTree

func BuildHTree(reader io.Reader) *HTree

func (*HTree) DecodeBytes

func (htree *HTree) DecodeBytes(encodedData []byte, nbits int) *[]byte

func (*HTree) EncodeBytes

func (htree *HTree) EncodeBytes(reader io.Reader) (encodedData *[]byte, nbits int)

func (*HTree) Print

func (hm *HTree) Print()

func (*HTree) PrintTree

func (hm *HTree) PrintTree(node *HNode, side string, symbols []byte)

type PQItem

type PQItem struct {
	// contains filtered or unexported fields
}

type PriorityQueue

type PriorityQueue []*PQItem

func (PriorityQueue) Len

func (pq PriorityQueue) Len() int

func (PriorityQueue) Less

func (pq PriorityQueue) Less(i, j int) bool

func (*PriorityQueue) Pop

func (pq *PriorityQueue) Pop() interface{}

func (*PriorityQueue) Push

func (pq *PriorityQueue) Push(x interface{})

func (PriorityQueue) Swap

func (pq PriorityQueue) Swap(i, j int)

type Transcode

type Transcode struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL