[][src]Function gojsonnet_sys::jsonnet_realloc

pub unsafe extern "C" fn jsonnet_realloc(
    vm: *mut JsonnetVm,
    buf: *mut c_char,
    sz: size_t
) -> *mut c_char

Allocate, resize, or free a buffer. This will abort if the memory cannot be allocated. It will only return NULL if sz was zero.

\param buf If NULL, allocate a new buffer. If an previously allocated buffer, resize it. \param sz The size of the buffer to return. If zero, frees the buffer. \returns The new buffer.