malloc top-level constant Null safety
Manages memory on the native heap.
Does not initialize newly allocated memory to zero. Use calloc for zero-initialized memory allocation.
For POSIX-based systems, this uses
free. On Windows, it uses
HeapFree against the default public heap.
const Allocator malloc = _MallocAllocator();