tryRealloc
fun tryRealloc(mem: <Error class: unknown class>? = null, nBytes: <Error class: unknown class>): <Error class: unknown class>?
Attempts to realloc @mem to a new size, @n_bytes, and returns null on failure. Contrast with g_realloc(), which aborts the program on failure.
If @mem is null, behaves the same as g_try_malloc().
Return
the allocated memory, or null.
Parameters
mem
previously-allocated memory, or null.
nBytes
number of bytes to allocate.