huffman

package
v3.0.0-...-55e877b Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicTabler

type BasicTabler interface {
	HtHigh() int32
	HtLow() int32
	StreamReader() *_b.Reader
	HtPS() int32
	HtRS() int32
	HtOOB() int32
}

type Code

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

func NewCode

func NewCode(prefixLength, rangeLength, rangeLow int32, isLowerRange bool) *Code

func (*Code) String

func (_gac *Code) String() string

type EncodedTable

type EncodedTable struct {
	BasicTabler
	// contains filtered or unexported fields
}

func NewEncodedTable

func NewEncodedTable(table BasicTabler) (*EncodedTable, error)

func (*EncodedTable) Decode

func (_a *EncodedTable) Decode(r *_b.Reader) (int64, error)

func (*EncodedTable) InitTree

func (_ba *EncodedTable) InitTree(codeTable []*Code) error

func (*EncodedTable) RootNode

func (_ga *EncodedTable) RootNode() *InternalNode

func (*EncodedTable) String

func (_bab *EncodedTable) String() string

type FixedSizeTable

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

func NewFixedSizeTable

func NewFixedSizeTable(codeTable []*Code) (*FixedSizeTable, error)

func (*FixedSizeTable) Decode

func (_cf *FixedSizeTable) Decode(r *_b.Reader) (int64, error)

func (*FixedSizeTable) InitTree

func (_ebg *FixedSizeTable) InitTree(codeTable []*Code) error

func (*FixedSizeTable) RootNode

func (_bbg *FixedSizeTable) RootNode() *InternalNode

func (*FixedSizeTable) String

func (_dca *FixedSizeTable) String() string

type InternalNode

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

func (*InternalNode) Decode

func (_cfa *InternalNode) Decode(r *_b.Reader) (int64, error)

func (*InternalNode) String

func (_feg *InternalNode) String() string

type Node

type Node interface {
	Decode(_ea *_b.Reader) (int64, error)
	String() string
}

type OutOfBandNode

type OutOfBandNode struct{}

func (*OutOfBandNode) Decode

func (_faa *OutOfBandNode) Decode(r *_b.Reader) (int64, error)

func (*OutOfBandNode) String

func (_aca *OutOfBandNode) String() string

type StandardTable

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

func (*StandardTable) Decode

func (_eee *StandardTable) Decode(r *_b.Reader) (int64, error)

func (*StandardTable) InitTree

func (_fd *StandardTable) InitTree(codeTable []*Code) error

func (*StandardTable) RootNode

func (_aa *StandardTable) RootNode() *InternalNode

func (*StandardTable) String

func (_bae *StandardTable) String() string

type Tabler

type Tabler interface {
	Decode(_cb *_b.Reader) (int64, error)
	InitTree(_bdc []*Code) error
	String() string
	RootNode() *InternalNode
}

func GetStandardTable

func GetStandardTable(number int) (Tabler, error)

type ValueNode

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

func (*ValueNode) Decode

func (_af *ValueNode) Decode(r *_b.Reader) (int64, error)

func (*ValueNode) String

func (_aeb *ValueNode) String() string

Jump to

Keyboard shortcuts

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