FixedHash: Difference between revisions
→Format: Entry
imported>Leoetlino (→Format: alignment) |
imported>Leoetlino (→Format: Entry) |
||
Line 29: | Line 29: | ||
| 0x6 || u16 || Padding? {{check}} | | 0x6 || u16 || Padding? {{check}} | ||
|- | |- | ||
| 0x8 || u32[N + 1] || '''Offsets to the first entry in each bucket''' (relative to the Entries section) | | 0x8 || u32[N + 1] || '''Offsets to the first entry in each bucket''' (relative to the Entries section)<br>0xFFFFFFFF for empty buckets. | ||
|- | |- | ||
| X = (0x8 + 4*(N+1) + 3) & -8 || u64 || Entries section size | | X = (0x8 + 4*(N+1) + 3) & -8 || u64 || Entries section size | ||
Line 49: | Line 49: | ||
|} | |} | ||
=== Entry === | |||
{|class="wikitable" | |||
! Offset !! Type !! Description | |||
|- | |||
| 0x0 || u16 || '''Node index''' if this describes a FixedHash child node (if so, it must be <= 0xFFED) | |||
|- | |||
| 0x2 || u16 || '''Name offset''' (relative to the Name section) | |||
|- | |||
| 0x4 || u32 || '''Name hash''' | |||
|- | |||
| 0x8 || u32 || '''Next entry offset''' (relative to the Entries section) for hash table collision resolution.<br>0xFFFFFFFF if there is no other entry in the bucket. | |||
|- | |||
| 0xC || u32 || '''Data offset''' (relative to the Data section) | |||
|- | |||
|} | |||
[[Category:File formats]] | [[Category:File formats]] |