RedLZ77:
Filter:
redSys/Classes (extension) | Red >  > redTools

RedLZ77
ExtensionExtension

lz77 compression/decompression

Description

See http://michael.dipperstein.com/lzss/ and http://www.binaryessence.com/dct/en000138.htm

A dictionary look-up compressor that performs best with very long repeating patterns e.g. [0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3]. Use RedLZSS for better albeit slower compression.

NOTE: Works with Integer, Float and Symbol. Can also take a String instead of an Array.

Class Methods

.compress

Returns an array with length, distance and value...

.decompress

Returns an array.

.window

Maximum sliding window size. The default is 4096.

.length

Maximum length for matching pattern. The default is 32.

Examples