compression

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HuffEncode

func HuffEncode(codes map[rune][]bool, in string) []bool

func HuffEncoding

func HuffEncoding(node *Node, prefix []bool, codes map[rune][]bool)

func RegisterCompressionPreload

func RegisterCompressionPreload(v *vm.VM)

Types

type Node

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

func HuffTree

func HuffTree(listfreq []SymbolFreq) (*Node, error)

type SymbolFreq

type SymbolFreq struct {
	Symbol rune
	Freq   int
}

func SymbolCountOrd

func SymbolCountOrd(message string) []SymbolFreq

Jump to

Keyboard shortcuts

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