> On the docs, MemHandleSize is stated as returning 'the requested size of
> a chunk'. Does this mean that if I resize a chunk, MemHandleSize will
> return the old size?

no.


> In pseudo-code:
>     h = MemHandleNew(10);  // Alloc 10 byte chunk
>     MemHandleResize(hm 20); // Resize it to 20
>                                                 // And now for the big
> finale
>     MemHandleSize(h); // What is the return value for MemHandleSize? 10
> or 20?

the new requested size is 20.  after all, you did request the resize.

the block may in fact be 24 bytes long.  however, MemHandleSize only tells
you 20 because that's what you requested.


Reply via email to