3 ms·
In this case the state takes a constant amount of space so it is just a matter of allocating a single struct. With the approach of having the caller allocate y
by charcircuit 3y ago
In this case the state takes a constant amount of space so it is just a matter of allocating a single struct.
With the approach of having the caller allocate you have carefully design the API to make it possible.