zero.
ConservativeGC.realloc
void *realloc realloc(void * p, size_t size, uint bits = 0, const TypeInfo ti = null) nothrowRequest that the GC reallocate a block of memory, attempting to adjust the size in place if possible. If size is 0, the memory will be freed.
If p was not allocated by the GC, points inside a block, or is null, no action will be taken.
Parameters
p | A pointer to the root of a valid memory block or to null. |
size | The desired allocation size in bytes. |
bits | A bitmask of the attributes to set on this block. APPENDABLE and FINALIZE are not allowed for realloc. |
ti | TypeInfo to describe the memory. |
Returns
A reference to the allocated memory on success or null if size is
Throws
OutOfMemoryError on allocation failure.