# Io Reference

Compression / Zlib / ZlibEncoder

For Zlib compression. Example use:

    z = ZlibEncoder 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.
inputBuffer

The input buffer for decoding.
outputBuffer

The output buffer for decoding.
process

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