Io Reference







Compression   /   LZO   /   LZOEncoder





The LZOEncoder object can be used to compress data using the Lempel-Ziv-Oberhumer (LZO) lossless data compression algorithm.

Example use;

	
z = LZOEncoder clone
z beginProcessing
z inputBuffer appendSeq("this is a message")
z process
z endProcess
result := z outputBuffer 
 
 
 



beginProcessing

Initializes the algorithm.
endProcessing

Finish processing remaining bytes of inputBuffer.
process

Process the inputBuffer and appends the result to the outputBuffer. The processed inputBuffer is emptied except for the spare bytes at the end which don't fit into a cipher block.