pub unsafe fn ax_alloc(layout: Layout) -> Option<NonNull<u8>>
alloc
Allocates a continuous memory blocks with the given layout in the global allocator.
layout
Returns None if the allocation fails.
None
This function is unsafe because it requires users to manually manage the buffer life cycle.