Difference between revisions of "Template:BRRES sub file header"
Jump to navigation
Jump to search
m |
(Use Type not Size) |
||
Line 1: | Line 1: | ||
<includeonly>{| class="wikitable" | <includeonly>{| class="wikitable" | ||
− | ! Offset !! | + | ! Offset !! Type !! Description |
|- | |- | ||
− | | 0x00 || | + | | 0x00 || String || {{#if:{{{1|}}}|The magic "'''{{{1}}}'''"|A magic}} to identify the sub file. {{#if:{{{1|}}}|See »[[BRRES Sub Files (File Format)#Common Format|BRRES Sub Files]]« for other magics.}} |
|- | |- | ||
− | | 0x04 || | + | | 0x04 || UInt32 || Length of the sub file. |
|- | |- | ||
− | | 0x08 || | + | | 0x08 || UInt32 || Sub file version number. The number of sections ('''N''') is dependent of this version number. See {{#if: {{{1|}}} | »[[BRRES Sub Files (File Format)#Common Format |BRRES Sub Files]]« | next table }} for details. |
|- | |- | ||
− | | 0x0C || | + | | 0x0C || UInt32 || Offset to outer BRRES File (negative value). |
|- | |- | ||
− | | 0x10 || '''N''' | + | | 0x10 || UInt32['''N'''] || '''N''' section offsets. '''N''' is implied in the version number (offset 0x08). |
|- | |- | ||
− | | 0x10+'''N'''*4 || | + | | 0x10+'''N'''*4 || UInt32 || String offset to the name of this sub file. This name equal to the name of the entry name of the [[BRRES Index Group (File Format)|BRRES Index Group]] pointing to this data. |
|- | |- | ||
| 0x14+'''N'''*4 || colspan=2 {{unknown|End of this header}} | | 0x14+'''N'''*4 || colspan=2 {{unknown|End of this header}} |
Revision as of 08:43, 6 April 2023
Usage
{{BRRES sub file header}} {{BRRES sub file header|MAGIC}}
Examples
Offset | Type | Description |
---|---|---|
0x00 | String | A magic to identify the sub file. |
0x04 | UInt32 | Length of the sub file. |
0x08 | UInt32 | Sub file version number. The number of sections (N) is dependent of this version number. See next table for details. |
0x0C | UInt32 | Offset to outer BRRES File (negative value). |
0x10 | UInt32[N] | N section offsets. N is implied in the version number (offset 0x08). |
0x10+N*4 | UInt32 | String offset to the name of this sub file. This name equal to the name of the entry name of the BRRES Index Group pointing to this data. |
0x14+N*4 | End of this header |
Offset | Type | Description |
---|---|---|
0x00 | String | The magic "MAGIC" to identify the sub file. See »BRRES Sub Files« for other magics. |
0x04 | UInt32 | Length of the sub file. |
0x08 | UInt32 | Sub file version number. The number of sections (N) is dependent of this version number. See »BRRES Sub Files« for details. |
0x0C | UInt32 | Offset to outer BRRES File (negative value). |
0x10 | UInt32[N] | N section offsets. N is implied in the version number (offset 0x08). |
0x10+N*4 | UInt32 | String offset to the name of this sub file. This name equal to the name of the entry name of the BRRES Index Group pointing to this data. |
0x14+N*4 | End of this header |