free_sized


Description:

[ Version ( since = "2.74" ) ]
public void free_sized (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 free instead.

Parameters:

mem

the memory to free

alignment

alignment of mem

size

size of mem, in bytes


Namespace: GLib.Aligned
Package: glib-2.0