Function esp_idf_sys::multi_heap_aligned_alloc

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

@brief allocate a chunk of memory with specific alignment

@param heap Handle to a registered heap. @param size size in bytes of memory chunk @param alignment how the memory must be aligned

@return pointer to the memory allocated, NULL on failure