From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:XDBF (Xbox 360 database)" |
|---|
| claim | "XDBF header (24 bytes, big-endian: magic XDBF, version, entry capacity, entries used, free capacity, free used) followed by 18-byte entries (u16 namespace, u64 id, u32 offset, u32 size) and 8-byte free-space records." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:XDBF (Xbox 360 database)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "XDBF_HEADER" |
|---|
| size | "0x18" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "uint32_be" |
|---|
| name | "magic" |
|---|
| notes | "XDBF 58 44 42 46" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "uint32_be" |
|---|
| name | "version" |
|---|
|
| offset | "0x8" |
|---|
| size | 4 |
|---|
| type | "uint32_be" |
|---|
| name | "entry_count" |
|---|
|
| offset | "0xC" |
|---|
| size | 4 |
|---|
| type | "uint32_be" |
|---|
| name | "entry_used" |
|---|
|
| offset | "0x10" |
|---|
| size | 4 |
|---|
| type | "uint32_be" |
|---|
| name | "free_count" |
|---|
|
| offset | "0x14" |
|---|
| size | 4 |
|---|
| type | "uint32_be" |
|---|
| name | "free_used" |
|---|
|
| offset | "0x18" |
|---|
| size | 18 |
|---|
| type | "struct { uint16_be section; uint64_be id; uint32_be offset; uint32_be size; }[entry_count]" |
|---|
| name | "entries" |
|---|
| notes | "section 1 metadata, 2 image, 3 string table" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "XdbfSection, XbdfHeader, XbdfEntry, XbdfFileLoc" |
|---|
| repo | "https://github.com/xenia-project/xenia" |
|---|
| commit | "95a5c3ee250f80c3b9d139658649d9ffb6db3eec" |
|---|
| path | "src/xenia/kernel/util/xdbf_utils.h" |
|---|
| lines | "26-56" |
|---|
|
| type | "source" |
|---|
| detail | "magics XDBF XSTC XSTR XACH and ids 0x8000, 0x58535443, 0x58414348" |
|---|
| repo | "https://github.com/xenia-project/xenia" |
|---|
| commit | "95a5c3ee250f80c3b9d139658649d9ffb6db3eec" |
|---|
| path | "src/xenia/kernel/util/xdbf_utils.cc" |
|---|
| lines | "16-23" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Header and entry" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T13:46:30.805Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T13:27:24.849Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read xdbf_utils.h 26-56 and xdbf_utils.cc 16-61 at 95a5c3ee: XbdfHeader 6 x be u32 (24 bytes), XbdfEntry be u16 section, be u64 id, be u32 offset, be u32 size = 18 bytes under pragma pack(1), XbdfFileLoc 2 x be u32 = 8 bytes; section values 1/2/3. Table sizes in the constructor use entry_count and free_count (capacities), GetEntry scans entry_used." |
|---|
|
|
|---|