EmptyTable520760
function · ui · primitive
- Address
0x520760· 189 bytes, up to0x52081c- Meaning
- Empties the table, frees its buckets and sets the mask to -1
- Confidence
- verified, proof one
- Finding
- ui/containers#hash-tables
Finding: Hash tables in ui: list, table and array helpers
123 rows are the functions of the hash table template: the bucket array is a vector of 12-byte list heads, the main list threads every node, and the mask is the bucket count less one:
| Function | Rows | Does |
|---|---|---|
| EmptyTable | 19 | Empties the table, frees its buckets and sets the mask to -1 |
| ReallocBuckets | 18 | Reallocates a bucket array, moving each bucket list |
| DestroyTable | 17 | Destroys a table: empties it, frees its buckets and frees it when bit 0 of the argument is set |
| FreeBuckets | 17 | Empties a table's bucket lists and frees the bucket array |
| ResizeBuckets | 14 | Sets a bucket array's count, rounding the capacity to its quantum below 21 elements |
| GrowBuckets | 10 | Grows a bucket array by a count, rounding the capacity to its quantum |
| GrowOnLongChain | 8 | Doubles a table's buckets and rehashes when the run counter passes 13 on a chain walk, below mask 0x1fff |
| RehashTable | 7 | Moves a hash table's nodes into a resized bucket array |
| ClearTable | 7 | Unlinks every node of a table and, unless its argument is set, frees each |
| InitTable | 4 | Builds an empty hash table with mask -1 |
| ShouldGrow | 2 | Adds a bucket's chain walk to the run counter and grows the table when it passes 13 |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 3
- Unlink520a60 ui
- ClearList521190 ui
- SMemFree storm
Calls and jumps by a bare address, from tables/calls.tsv.