ResizeFloatList
function · spline · host
- Address
0x4548a0· 133 bytes, up to0x454924- Signature
void __thiscall (void *this, uint32_t cap)- Meaning
- Reallocates a float list to cap entries keeping the first min(cap, count)
- Confidence
- verified, proof one
- Finding
- spline#control-point-storage
Finding: Control point storage in spline
0x4534f0(points, n) stores n at +8, reallocates the control array to 12n bytes, copies n
vectors from points and stores n at +0xc. The Catmull-Rom slot 7, 0x454770, grows the
segment length list to n − 3 floats and calls 0x4534f0 with (points, n). The Bezier slot 7,
0x453ee0, grows it to ⌊n/3⌋ and calls 0x4534f0 with 3·⌊n/3⌋ + 1 points, one more than n
unless n = 3k + 1. 0x4548a0(cap) resizes a float list to cap entries. The segment count
n − 3 wraps for n of 1 or 2.
The derivation is in the doc.
Callers 5
- SetBezierControlPoints spline
- SetCatmullRomControlPoints spline
- CGxDeviceOpenGl::ReadDepths gx
- CGxDeviceD3d::ReadDepths gx
- CreateCloudTexture lighting
Callees 3
- SMemAlloc storm
- SMemReAlloc storm
- SMemFree storm
Calls and jumps by a bare address, from tables/calls.tsv.