From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Sawyer chunk encoding" |
|---|
| claim | "Every Sawyer chunk starts with a packed 5-byte header: a uint8 encoding (0-3) and a little-endian uint32 length of the encoded payload that follows." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Format:Sawyer chunk encoding" |
|---|
| observed_in | | "Software:RollerCoaster Tycoon 2" |
|
|---|
|
|---|
| data | | name | "SawyerChunkHeader" |
|---|
| size | "0x5" |
|---|
| alignment | "1 (packed)" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "encoding" |
|---|
|
| offset | "0x1" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "length" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "OpenRCT2 commit 2107821, src/openrct2/sawyer_coding/SawyerChunk.h: ChunkHeader under #pragma pack(1) with a static_assert of size 5." |
|---|
|
| type | "comparison" |
|---|
| detail | "OpenLoco src/OpenLoco/src/S5/SawyerStream.cpp writes the same header (encoding byte, then u32 length) for Locomotion files." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Sawyer chunk header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T02:40:24.319Z" |
|---|
| verifications | |
|---|