Skip to content

Instantly share code, notes, and snippets.

@ymgve
Created October 25, 2023 16:47
Show Gist options
  • Save ymgve/d48cdb98990a161b775df3c7c9900412 to your computer and use it in GitHub Desktop.
Save ymgve/d48cdb98990a161b775df3c7c9900412 to your computer and use it in GitHub Desktop.
hashtable size: 4 entries, specified at offset 0x20 in the header
full table size: hashtable size + number of entries in manifest, specified at 0x0c in the header
lookup section:
00: 04 00 00 00 points to 04 in full table
01: 06 00 00 00 points to 06 in full table
02: 0A 00 00 00 etc
03: 0C 00 00 00
entry index sections:
04: 01 00 00 00 entry index 1
05: 03 00 00 80 entry index 3, end of list
06: 00 00 00 00 entry index 0
07: 02 00 00 00
08: 0B 00 00 00
09: 0E 00 00 80 entry index 0e, end of list
0a: 05 00 00 00 etc
0b: 0A 00 00 80
0c: 04 00 00 00
0d: 06 00 00 00
0e: 07 00 00 00
0f: 08 00 00 00
10: 09 00 00 00
11: 0C 00 00 00
12: 0D 00 00 80
total size 04 + 0f = 13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment