Function esp_idf_hal::sys::multi_heap_malloc

source ยท
pub unsafe extern "C" fn multi_heap_malloc(
    heap: *mut multi_heap_info,
    size: usize,
) -> *mut c_void
Expand description

@brief malloc() a buffer in a given heap

Semantics are the same as standard malloc(), only the returned buffer will be allocated in the specified heap.

@param heap Handle to a registered heap. @param size Size of desired buffer.

@return Pointer to new memory, or NULL if allocation fails.