Function esp_idf_sys::heap_caps_realloc_prefer

source ·
pub unsafe extern "C" fn heap_caps_realloc_prefer(
    ptr: *mut c_void,
    size: usize,
    num: usize,
    ...
) -> *mut c_void
Expand description

@brief Reallocate a chunk of memory as preference in decreasing order.

@param ptr Pointer to previously allocated memory, or NULL for a new allocation. @param size Size of the new buffer requested, or 0 to free the buffer. @param num Number of variable paramters

@return Pointer to a new buffer of size ‘size’, or NULL if allocation failed.