tryReallocN
fn
void * tryReallocN(void * mem, size_t nBlocks, size_t nBlockBytes)This function is similar to [glib.global.tryRealloc], allocating (n_blocks * n_block_bytes) bytes, but care is taken to detect possible overflow during multiplication.
Parameters
mem | previously-allocated memory, or null. |
nBlocks | the number of blocks to allocate |
nBlockBytes | the size of each block in bytes |
Returns
the allocated memory, or null.