[][src]Function meshopt::ffi::meshopt_setAllocator

pub unsafe extern "C" fn meshopt_setAllocator(
    allocate: Option<unsafe extern "C" fn(arg1: usize) -> *mut c_void>,
    deallocate: Option<unsafe extern "C" fn(arg1: *mut c_void)>
)

Set allocation callbacks These callbacks will be used instead of the default operator new/operator delete for all temporary allocations in the library. Note that all algorithms only allocate memory for temporary use. allocate/deallocate are always called in a stack-like order - last pointer to be allocated is deallocated first.