alignedFreeSized

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

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.

Parameters

memthe memory to free
alignmentalignment of mem
sizesize of mem, in bytes