From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:Sawyer chunk encoding" |
|---|
| claim | "The chunk header's encoding byte is 0 = none, 1 = RLE, 2 = RLE followed by a repeat (back-reference) stage, 3 = bit rotation; other values are invalid." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Format:Sawyer chunk encoding" |
|---|
| observed_in | | "Software:RollerCoaster Tycoon 2" |
|
|---|
|
|---|
| data | | name | "ChunkEncoding" |
|---|
| underlying_type | "uint8_t" |
|---|
| values | | 0 | "none" |
|---|
| 1 | "rle" |
|---|
| 2 | "rleCompressed (RLE + repeat)" |
|---|
| 3 | "rotate" |
|---|
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "OpenRCT2 commit 2107821, SawyerChunk.h (enum ChunkEncoding) and SawyerChunkReader.cpp, which throws 'Invalid chunk encoding' for anything else." |
|---|
|
| type | "runtime_test" |
|---|
| detail | "An independent Python decoder written from this description decodes OpenRCT2's four test vectors (test/tests/SawyerCodingTest.cpp) to the expected 1024-byte buffer." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Chunk encoding values" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T02:40:24.387Z" |
|---|
| verifications | |
|---|