huffman

package module
v0.0.0-...-6bf2e72 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: MIT Imports: 7 Imported by: 0

README

huffman

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decompress

func Decompress(compressedContent []byte) string

Decompress decompresses the given data back into a string.

Types

type CompressionResult

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

CompressionResult holds the compressed data and huffman tree.

func Compress

func Compress(input string) CompressionResult

Compress takes a string and compresses it using Huffman code.

func (*CompressionResult) Bytes

func (cr *CompressionResult) Bytes() []byte

Bytes returns a byte array representation.

Jump to

Keyboard shortcuts

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