From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:U8 archive" |
|---|
| claim | "A U8 archive node is 12 bytes: kind (0 file, 1 directory), 24-bit name offset, offset (files: data position; directories: parent index), length (files: size; directories: end index in the node table). The root node 0 is a directory whose length is the node count." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:U8 archive" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "U8Node" |
|---|
| size | 12 |
|---|
| fields | | name | "kind" |
|---|
| type | "uint8" |
|---|
| offset | 0 |
|---|
|
| name | "name_offset" |
|---|
| type | "uint24 big-endian" |
|---|
| offset | 1 |
|---|
|
| name | "offset" |
|---|
| type | "uint32 big-endian" |
|---|
| offset | 4 |
|---|
|
| name | "length" |
|---|
| type | "uint32 big-endian" |
|---|
| offset | 8 |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "U8Node struct and accessors; U8View::new validates the root node" |
|---|
| repo | "https://github.com/encounter/decomp-toolkit" |
|---|
| commit | "0645e16511814920ffb05b25615dd71f1af73e4c" |
|---|
| path | "src/util/u8_arc.rs" |
|---|
| lines | "36-120" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T04:52:10.431Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:38:51.607Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read u8_arc.rs: U8Node repr(C) {kind u8; name_offset [u8;3] big-endian; offset U32; length U32}, size_of == 12; kind 0 file / 1 directory; U8View::new requires root node kind Directory with offset 0 and node_count = root.length; find() skips a directory by jumping to idx = node.length (end index). Caveat: the doc comment says the file offset is relative to header.data_offset, but the code never dereferences it, so the base of the file data offset is only stated by that comment." |
|---|
|
|
|---|