FixedHash: Difference between revisions
→Format: alignment
imported>Leoetlino (Created page with "{{File format|name=FixedHash|version=1|endianness=little}} '''FixedHash''' is a custom Grezzo format for serializing wikipedia:hash tables that map string keys to arbitra...") |
imported>Leoetlino (→Format: alignment) |
||
Line 35: | Line 35: | ||
| X + 8 || Entry[...] || '''Entries''' | | X + 8 || Entry[...] || '''Entries''' | ||
|- | |- | ||
| Y = X + entries section size || u64 || Entry offsets section size | | Y = align(X + entries section size, 8) || u64 || Entry offsets section size | ||
|- | |- | ||
| Y + 8 || u32[...] || '''Entry offsets''' (relative to the Entries section) | | Y + 8 || u32[...] || '''Entry offsets''' (relative to the Entries section) | ||
|- | |- | ||
| Z = Y + entry offset section size || u64 || Data section size | | Z = align(Y + entry offset section size, 8) || u64 || Data section size | ||
|- | |- | ||
| Z + 8 || any || '''Data''' | | Z + 8 || any || '''Data''' | ||
|- | |- | ||
| A = Z + data section size || u32 || Name section size | | A = align(Z + data section size, 4) || u32 || Name section size | ||
|- | |- | ||
| A + 4 || C strings || '''Names''' | | A + 4 || C strings || '''Names''' |