From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Mac resource fork" |
|---|
| claim | "A resource file starts with a 256-byte header (u32 data offset, u32 map offset, u32 data length, u32 map length, 112 reserved, 128 application bytes); the map has a 16+4+2-byte reserved prefix, u16 attributes, u16 type list offset, u16 name list offset." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Mac resource fork" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "ResourceFileHeader" |
|---|
| size | "0x100" |
|---|
| endianness | "big" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "data_offset" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "map_offset" |
|---|
|
| offset | "0x8" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "data_length" |
|---|
|
| offset | "0xC" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "map_length" |
|---|
|
| offset | "0x10" |
|---|
| size | 112 |
|---|
| type | "uint8_t[112]" |
|---|
| name | "system_reserved" |
|---|
|
| offset | "0x80" |
|---|
| size | 128 |
|---|
| type | "uint8_t[128]" |
|---|
| name | "application_data" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Read: STRUCT_RESOURCE_HEADER '>IIII112s128s'; STRUCT_RESOURCE_MAP_HEADER '>16x4x2xHHH' (map attributes, type list offset, name list offset, each offset from the map start); the reader rejects a file whose data offset is not the end of the header." |
|---|
| repo | "dgelessus/python-rsrcfork" |
|---|
| commit | "d2bbab1f5dd8670baa1ea5a31a1754b824743493" |
|---|
| path | "src/rsrcfork/api.py" |
|---|
| lines | "19-39, 464-465" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "File header and map" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T03:33:26.055Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:25:41.616Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read src/rsrcfork/api.py at d2bbab1f5dd8: STRUCT_RESOURCE_HEADER '>IIII112s128s' = 256 bytes (system reserved at 0x10, application data at 0x80); STRUCT_RESOURCE_MAP_HEADER '>16x4x2xHHH' (attributes, type list offset, name list offset). Matches." |
|---|
|
|
|---|