std::core::mem

malloc_aligned

fn void* malloc_aligned(usz size, usz alignment) @builtin @inline @nodiscard
Allocate using an aligned allocation. This is necessary for types with a default memory alignment
exceeding DEFAULT_MEM_ALIGNMENT. IMPORTANT! It must be freed using free_aligned.

Parameters