A range coder for compression.
Encoding a buffer entirely filled with
0 will always take up
8 bytes. A buffer entirely filled with other values will always take up
Compresses the given input bytes and writes the compressed output bytes to the given buffer.
Helper method for compressing multiple data chunks in a row, while keeping track of output buffer overflow situations.
Decompresses the given bytes.
If the binary input in is malformed.