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 HeapAlloc with HEAP_ZERO_MEMORY and HeapFree against the default public heap.


const Allocator calloc = _CallocAllocator();