LZSS
[EN] Implementation of the LZSS compression algorithm
[FR] Implémentation de l'algorithme de compression LZSS
Usage
import "github.com/fbonhomm/LZSS/source"
var Lzss = source.LZSS{Mode: 1, PositionMode: 0}
dataCompress := Lzss.Compress([]byte("..."))
rawData := Lzss.Decompress(dataCompress)
Configuration
Mode
:
- 0 is mode with one bit flag in front each byte or encoding (default)
- 1 is mode with one byte flag in front each 8 pattern of character or encoding
PositionMode
:
- 0 set count position to started begin dictionary (default)
- 1 set count position to started current index