TypeScript API Documentation for GLIB
API Version: 2.0
Library Version: 2.86.4
Generated with TypeDoc via ts-for-gir v4.0.0-beta.40
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.
mem
n_bytes
null
g_realloc()
If mem is null, behaves the same as g_try_malloc().
g_try_malloc()
previously-allocated memory, or null.
number of bytes to allocate.
the allocated memory, or null.
Attempts to realloc
memto a new size,n_bytes, and returnsnullon failure. Contrast withg_realloc(), which aborts the program on failure.If
memisnull, behaves the same asg_try_malloc().