XADMaster-wiki/Rle90Algorithm.md
2018-03-09 17:43:00 +02:00

8 lines
No EOL
434 B
Markdown

# Description #
This is a simple RLE algorithm used by some old Mac archivers such as StuffIt. It uses a single-byte escape code to encode repeated runs of characters.
* The byte 0x90 followed by a a single non-zero byte N start a run of N-1 repetitions of the last byte previously output.
* 0x90 0x00 outputs the byte "0x90".
* 0x90 0x01 seems to either be a no-op or illegal.
* Any other byte sequence is a literal string.