[][src]Function esp_idf_bindgen::heap_caps_aligned_calloc

pub unsafe extern "C" fn heap_caps_aligned_calloc(
    alignment: size_t,
    n: size_t,
    size: size_t,
    caps: u32
) -> *mut c_void

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

@note Any memory allocated with heap_caps_aligned_calloc() MUST be freed with heap_caps_aligned_free() and CANNOT be passed to free()