Function

GLib-2.0GLibaligned_alloc0Since 2.72

  • This function is similar to g_aligned_alloc(), but it will also clear the allocated memory before returning it.

    Parameters

    • n_blocks: number

      the number of blocks to allocate

    • n_block_bytes: number

      the size of each block in bytes

    • alignment: number

      the alignment to be enforced, which must be a positive power of 2 and a multiple of sizeof(void*)

    Returns any

    the allocated, cleared memory

    2.72