Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decompress ¶
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.
Click to show internal directories.
Click to hide internal directories.