alignedFreeSized
fn
void 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
mem | the memory to free |
alignment | alignment of mem |
size | size of mem, in bytes |