HeapAlloc function kernel32
Allocates a block of memory from a heap.
The allocated memory is not movable.
To learn more, see learn.microsoft.com/windows/win32/api/heapapi/nf-heapapi-heapalloc.
Implementation
@pragma('vm:prefer-inline')
Pointer HeapAlloc(HANDLE hHeap, HEAP_FLAGS dwFlags, int dwBytes) =>
_HeapAlloc(hHeap, dwFlags, dwBytes);