Function

GLib-2.0GLibaligned_free_sizedSince 2.76

  • 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 g_aligned_free() instead.

    Parameters

    • mem: any

      the memory to free

    • alignment: number | bigint

      alignment of mem

    • size: number | bigint

      size of mem, in bytes

    Returns void

    2.76