From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:BYML" |
|---|
| claim | "BYML header is 0x10 bytes: BY or YB magic, u16 version (1-4), then u32 offsets of the hash key table, the string table and the root node." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:BYML" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "BymlHeader" |
|---|
| size | 16 |
|---|
| fields | | offset | "0x00" |
|---|
| size | 2 |
|---|
| type | "char[2]" |
|---|
| name | "magic" |
|---|
| notes | "BY big endian, YB little endian" |
|---|
|
| offset | "0x02" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "version" |
|---|
| notes | "1-4" |
|---|
|
| offset | "0x04" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "hash_key_table_offset" |
|---|
|
| offset | "0x08" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "string_table_offset" |
|---|
|
| offset | "0x0C" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "root_node_offset" |
|---|
|
|
|---|
| endianness | "mixed" |
|---|
| endianness_notes | "Magic BY: all multi-byte fields big endian; magic YB: little endian. Console-dependent (Wii U big, Switch little)." |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "ResHeader with static_assert size 0x10 and IsValidVersion 1..4" |
|---|
| repo | "https://github.com/zeldamods/oead" |
|---|
| commit | "5fb74e1128468380b47da23a5690891c8af4ab72" |
|---|
| path | "src/byml.cpp" |
|---|
| lines | "40-55, 98-100" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "BYML header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T13:56:03.598Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:01:23.359Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read src/byml.cpp at 5fb74e11: ResHeader {char magic[2]; u16 version; u32 hash_key_table_offset; u32 string_table_offset; u32 root_node_offset}, static_assert size 0x10, IsValidVersion 1..4." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:35:38.070Z" |
|---|
| summary | "Set byte order mixed: the reader picks Big for magic 'BY' and Little for 'YB' (byml.cpp 142-148); the fields are read in that order." |
|---|
| changed | |
|---|
|
|
|---|