benilla-re systems structs docs

ExpandBlockTable

function · storm · primitive

Address
0x656130 · 142 bytes, up to 0x6561bd
Signature
void __fastcall (void *table, uint32_t count)
Meaning
Expands 16-byte block entries to 0x2c bytes from the last, zeroing the added fields
Confidence
verified, proof two
Finding
storm/format#hash-and-block-tables

Finding: Hash and block tables in storm: the archive format

The hash table, count × 16 bytes, is decrypted with the type 3 hash of (hash table) and the block table with that of (block table). A hash entry is name hash A, name hash B, a 16-bit locale, a 16-bit platform whose high byte is cleared at load, and a 32-bit block index; 0xffffffff ends a probe and 0xfffffffe is a deleted slot. A block entry is the file offset, packed size, unpacked size and flags. The client expands each to 0x2c bytes, adds the header's position to every nonzero offset, and sets bit 0 of the cleared hash byte of each block whose flags carry 0x02000000.

The derivation is in the doc.

Callers 1

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.