ConservativeGC.calloc
void *calloc calloc(size_t size, uint bits = 0, const TypeInfo ti = null) nothrowRequests an aligned block of managed memory from the garbage collector, which is initialized with all bits set to zero.
Parameters
size | The desired allocation size in bytes. |
bits | A bitmask of the attributes to set on this block. |
ti | TypeInfo to describe the memory. |
Returns
A reference to the allocated memory or null if no memory was requested.
Throws
OutOfMemoryError on allocation failure.