Function esp_idf_sys::heap_caps_aligned_calloc
source ยท pub unsafe extern "C" fn heap_caps_aligned_calloc(
alignment: usize,
n: usize,
size: usize,
caps: u32,
) -> *mut c_void
Expand description
@brief Allocate an aligned chunk of memory which has the given capabilities. The initialized value in the memory is set to zero.
@param alignment How the pointer received needs to be aligned must be a power of two @param n Number of continuing chunks of memory to allocate @param size Size, in bytes, of a chunk of memory to allocate @param caps Bitwise OR of MALLOC_CAP_* flags indicating the type of memory to be returned
@return A pointer to the memory allocated on success, NULL on failure