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

RedLZ77 : Object
ExtensionExtension

lz77 compression/decompression
Source: RedLZ77.sc

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

RedLZ77.compress(input)

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

RedLZ77.decompress(input)

Returns an array.

RedLZ77.window

RedLZ77.window = value

Maximum sliding window size. The default is 4096.

RedLZ77.length

RedLZ77.length = value

Maximum length for matching pattern. The default is 32.

Inherited class methods

Instance Methods

Inherited instance methods

Examples