[][src]Function esp_idf_bindgen::heap_caps_realloc_prefer

pub unsafe extern "C" fn heap_caps_realloc_prefer(
    ptr: *mut c_void,
    size: size_t,
    num: size_t,
     ...
) -> *mut c_void

@brief Allocate 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.