tryMalloc0N

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

This function is similar to g_try_malloc0(), allocating (@n_blocks * @n_block_bytes) bytes, but care is taken to detect possible overflow during multiplication.

Return

the allocated memory, or null

Since

2.24

Parameters

nBlocks

the number of blocks to allocate

nBlockBytes

the size of each block in bytes