Documentation
¶
Overview ¶
Package smaz is a pure Go implementation of the smaz algorithm (https://github.com/antirez/smaz) for compressing small strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCorrupt = errors.New("smaz: corrupt input")
ErrCorrupt reports that the input is invalid.
Functions ¶
func Decode ¶
Decode returns the decoded form of src. The returned slice may be a sub-slice of dst if dst was large enough to hold the entire decoded block. Otherwise, a newly allocated slice will be returned. It is valid to pass a nil dst.
func Encode ¶
Encode returns the encoded form of src. The returned slice may be a sub-slice of dst if dst was large enough to hold the entire encoded block. Otherwise, a newly allocated slice will be returned. It is valid to pass a nil dst.
func LoadCustomTable ¶
func LoadCustomTable(table []string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.