RehashStringTable
function · sound · primitive
- Address
0x45f040· 491 bytes, up to0x45f22a- Meaning
- Resizes the string table buckets to a count and relinks every node by hash and mask
- Confidence
- verified, proof one
- Finding
- sound/overview#hash-tables
Finding: Hash tables in sound: overview
The footstep table, the UI sound name table, the sheathe table and the definition load's string table share one hash table template: a vtable, a node list, a walk counter, an array of bucket lists and a mask, −1 while empty. An add makes four buckets on first use; while the mask is below 0x1fff it lowers the counter by 3 (not below 0) and raises it once per link in the bucket, and past 13 doubles the buckets and rehashes. The new node goes at the tail of the node list. The vtable holds the node free, the node allocation, the deleting destructor and the destroy.
The derivation is in the doc.
Callers 1
- NewStringTableNode sound
Callees 7
- ClearStringList sound
- UnlinkStringLink sound
- StringNodeLink sound
- ConstructStringList sound
- StringListDeletingDtor sound
- ResetStringListHead sound
- ReserveStringBuckets sound
Calls and jumps by a bare address, from tables/calls.tsv.