SetArrayCapacity4b04f0
function · ui · primitive
- Address
0x4b04f0· 133 bytes, up to0x4b0574- Meaning
- Sets an array's capacity exactly, keeping the smaller of capacity and count when it must move
- Confidence
- verified, proof one
- Finding
- ui/containers#arrays
Finding: Arrays in ui: list, table and array helpers
64 rows size and round the arrays whose capacity is a multiple of a quantum:
| Function | Rows | Does |
|---|---|---|
| SetArrayCapacity | 17 | Sets an array's capacity exactly, keeping the smaller of capacity and count when it must move |
| RoundUp | 17 | Rounds a size up to a multiple of a quantum |
| GrowArrayBy | 7 | Raises an array's capacity for count + add, rounding on request, and leaves the count |
| Quantum21 | 6 | Returns the grow quantum for a count: the largest power of two not above it below 21, else 21 |
| ResizeArray | 5 | Resizes an array of 8-byte entries, copying the kept ones when it must move |
| Quantum64 | 5 | Returns the grow quantum for a count: the largest power of two not above it below 64, else 64 |
| SetArrayCount | 2 | Sets an array's count, growing its capacity to a quantum multiple when it must |
| ReserveArray | 2 | Grows an array to hold more entries, rounding up to its quantum on request |
| GrowChunk | 2 | Returns the growth step for a count |
| Quantum8 | 1 | Returns the grow quantum for a count: the largest power of two not above it below 8, else 8 |
The derivation is in the doc.
Callers 1
Callees 3
- SMemAlloc storm
- SMemReAlloc storm
- SMemFree storm
Calls and jumps by a bare address, from tables/calls.tsv.