alignedFreeSized

Frees the memory pointed to by mem, assuming it is has the given size and alignment.

If mem is null this is a no-op (and size is ignored).

It is an error if size doesn’t match the size, or alignment doesn’t match the alignment, passed when mem was allocated. size and alignment are passed to this function to allow optimizations in the allocator. If you don’t know either of them, use glib.global.alignedFree instead.

void
alignedFreeSized
(
void* mem
,
size_t alignment
,
size_t size
)

Parameters

mem void*

the memory to free

alignment size_t

alignment of mem

size size_t

size of mem, in bytes