pub unsafe extern "C" fn sys_heap_aligned_alloc(
heap: *mut sys_heap,
align: usize,
bytes: usize,
) -> *mut c_void
Expand description
@brief Allocate aligned memory from a sys_heap
Behaves in all ways like sys_heap_alloc(), except that the returned memory (if available) will have a starting address in memory which is a multiple of the specified power-of-two alignment value in bytes. With align=0 this behaves exactly like sys_heap_alloc(). The resulting memory can be returned to the heap using sys_heap_free().
@param heap Heap from which to allocate @param align Alignment in bytes, must be a power of two @param bytes Number of bytes requested @return Pointer to memory the caller can now use