pub unsafe fn global_alloc(layout: Layout) -> *mut u8
Expand description

Allocate a region of memory as specified by layout. Minimum 16-byte alignment. If we are out of memory, return null.

Safety

The caller must ensure that the returned memory is freed at the right time.