Skip to content

Rle90Algorithm

Paul Taykalo edited this page Mar 9, 2018 · 1 revision

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.