HeapSize function kernel32

int HeapSize(
  1. HANDLE hHeap,
  2. HEAP_FLAGS dwFlags,
  3. Pointer<NativeType> lpMem
)

Retrieves the size of a memory block allocated from a heap by the HeapAlloc or HeapReAlloc function.

To learn more, see learn.microsoft.com/windows/win32/api/heapapi/nf-heapapi-heapsize.

Implementation

@pragma('vm:prefer-inline')
int HeapSize(HANDLE hHeap, HEAP_FLAGS dwFlags, Pointer lpMem) =>
    _HeapSize(hHeap, dwFlags, lpMem);