HeapReAlloc
Resizes a block allocated from a Win32 heap.
Module: Windows
Microsoft documentation: HeapReAlloc
Signature
rux
func HeapReAlloc(heap: *opaque, flags: uint32, mem: *opaque,
bytes: uint) -> *opaque;Returns
*opaque — the resized block, or null on failure. On failure, mem remains valid and must still be freed. Use the same heap that allocated the block.
WARNING
Do not overwrite the only copy of mem before checking the returned pointer.