3 ms·
Ah gotcha. Yes, the actual layout of arrays is: header size capacity data ptr Where `data ptr` is a raw pointer to data that is realloc'd as t
by YorickPeterse 3y ago
Ah gotcha. Yes, the actual layout of arrays is:
header
size
capacity
data ptr
Where `data ptr` is a raw pointer to data that is realloc'd as the array grows.