alignedAlloc0

fun alignedAlloc0(nBlocks: <Error class: unknown class>, nBlockBytes: <Error class: unknown class>, alignment: <Error class: unknown class>): <Error class: unknown class>?

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

Return

the allocated, cleared memory

Since

2.72

Parameters

nBlocks

the number of blocks to allocate

nBlockBytes

the size of each block in bytes

alignment

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