malloc top-level constant
MallocAllocator
const malloc
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 malloc
and free
. On Windows, it uses
CoTaskMemAlloc
and CoTaskMemFree
.
Implementation
const MallocAllocator malloc = MallocAllocator._();