HeapReAlloc v0.1.0
Resizes a block allocated from a Win32 heap.
Package: Windows
Microsoft documentation: HeapReAlloc
Signature
func HeapReAlloc(
heap: *opaque,
flags: uint32,
mem: *opaque,
bytes: uint
) -> *var 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.
Do not overwrite the only copy of
mem before checking the returned pointer.