alignedAlloc0

fnvoid * alignedAlloc0(size_t nBlocks, size_t nBlockBytes, size_t alignment)

This function is similar to [glib.global.alignedAlloc], but it will also clear the allocated memory before returning it.

Parameters

nBlocksthe number of blocks to allocate
nBlockBytesthe size of each block in bytes
alignmentthe alignment to be enforced, which must be a positive power of 2 and a multiple of sizeof(void*)

Returns

the allocated, cleared memory