tryMalloc
fn
void * tryMalloc(size_t nBytes)Attempts to allocate n_bytes, and returns null on failure. Contrast with [glib.global.gmalloc], which aborts the program on failure.
Parameters
nBytes | number of bytes to allocate. |
Returns
the allocated memory, or null.