pub unsafe extern "C" fn multi_heap_realloc(
    heap: *mut multi_heap_info,
    p: *mut c_void,
    size: usize
) -> *mut c_void
Expand description

@brief realloc() a buffer in a given heap.

Semantics are the same as standard realloc(), only the argument ‘p’ must be NULL or have been allocated in the specified heap.

@param heap Handle to a registered heap. @param p NULL, or a pointer previously returned from multi_heap_malloc() or multi_heap_realloc() for the same heap. @param size Desired new size for buffer.

@return New buffer of ‘size’ containing contents of ‘p’, or NULL if reallocation failed.