huffman

package module
v0.0.0-...-2b90978 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2014 License: GPL-2.0 Imports: 7 Imported by: 3

README

Huffman-EnGOding

Huffman encoding/decoding, written in Google's Go. If you want testing to be short but far less thorough, use go test -short.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeText

func DecodeText(fromFile, toFile string) (err error)

DecodeText turns the bytes in fromFile into bytes in toFile. On success, returns a nil error. Else, returns a non-nil error. If fromFile exists before the call, it is deleted and replaced with the decompressed file. If something goes wrong, there will be no toFile when the function returns.

func EncodeText

func EncodeText(fromFile, toFile string) (err error)

EncodeText turns the bytes in fromFile into bytes in toFile, compressed under a tree created on the file. On success, returns a nil error and returns a non-nil error otherwise. If something does go wrong, there will be no file.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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