Open
Description
Currently our bindings are implementing realloc
by doing a new allocation and mem copy. I think we should introduce a realloc
API. Allocators can do more efficient realloc
when they can resize/expand the allocation. If they can't, they can fall back to the strategy of doing new allocation and mem copy.