LooseIndexEntry
struct · storm · 32 bytes
- Meaning
- Holds one loose file of the index: its key hash, list links, key, full path and kind
- Confidence
- verified, proof two
- Finding
- storm/mount#loose-file-index
Finding: Loose-file index in storm: mounting the archives
0x646ea0 walks the base path 0xc52418, or . when it does not list, then that string with 0xc520c8 (Data\)
appended (.Data\ in the fallback, so Data is then not walked), and marks the index built. 0x646910 skips
., .. and folders whose path below the walked folder is a prefix of Data\ (case-sensitive), walks the
others, and enters every regular file: the key is its path below the walked folder, the value its full path. A last extension .bz or
.MPQ (any case) is cut from the key, as kind 1 or 2; any other file is kind 0. A key's first entry stays: the
base folder's before Data\'s, then listing order. A third folder, 0xc52310, stays empty.
The derivation is in the doc.
Fields 8
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | uint32_t | m_hash | Holds SStrHashHT of the key | verified, proof two | storm/mount#loose-file-index |
0x0004 | 4 | void * | m_bucketPrev | Points at the previous link of its bucket chain | verified, proof two | storm/mount#index-lookup-and-open |
0x0008 | 4 | LooseIndexEntry * | m_bucketNext | Points at the next entry of its bucket chain, an odd value at the end | verified, proof two | storm/mount#index-lookup-and-open |
0x000c | 4 | void * | m_listPrev | Points at the previous link of the table's list of all entries | verified, proof two | storm/mount#index-lookup-and-open |
0x0010 | 4 | LooseIndexEntry * | m_listNext | Points at the next entry of the table's list of all entries, an odd value at the end | verified, proof two | storm/mount#index-lookup-and-open |
0x0014 | 4 | char * | m_key | Points at the key: the path below the walked folder, a .bz or .MPQ suffix cut | verified, proof two | storm/mount#loose-file-index |
0x0018 | 4 | char * | m_diskPath | Points at the full disk path, extension kept | verified, proof two | storm/mount#loose-file-index |
0x001c | 4 | uint32_t | m_kind | Holds 0 for a plain file, 1 for .bz, 2 for .MPQ | verified, proof two | storm/mount#loose-file-index |