pub unsafe extern "C" fn mgp_aligned_alloc(
memory: *mut mgp_memory,
size_in_bytes: size_t,
alignment: size_t,
) -> *mut c_voidExpand description
Allocate an aligned block of memory with given size in bytes.
Unlike malloc and aligned_alloc, this function is not thread-safe.
size_in_bytes must be greater than 0.
alignment must be a power of 2 value.
The returned pointer must be freed with mgp_free.
NULL is returned if unable to serve the requested allocation.