calloc top-level constant Null safety

Allocator const calloc

Manages memory on the native heap.

Initializes newly allocated memory to zero. Use malloc for uninitialized memory allocation.

For POSIX-based systems, this uses calloc and free. On Windows, it uses CoTaskMemAlloc and CoTaskMemFree.

Implementation

const Allocator calloc = _CallocAllocator();