Function physx_sys::PxAllocatorCallback_allocate_mut
source · pub unsafe extern "C" fn PxAllocatorCallback_allocate_mut(
self_: *mut PxAllocatorCallback,
size: usize,
typeName: *const c_char,
filename: *const c_char,
line: i32
) -> *mut c_void
Expand description
Allocates size bytes of memory, which must be 16-byte aligned.
This method should never return NULL. If you run out of memory, then you should terminate the app or take some other appropriate action.
Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s).
The allocated block of memory.