Skip to main content

allocator

Function allocator 

Source
pub unsafe fn allocator() -> (extern "C" fn(size: size_t) -> *mut u8, extern "C" fn(ptr: *mut c_void, size: size_t) -> *mut u8, extern "C" fn(ptr: *mut c_void))
Expand description

Return the existing Rax allocator.

ยงSafety

Must only be called when no other thread is modifying the allocator.