Skip to main content

call_native

Function call_native 

Source
pub unsafe fn call_native(ptr: usize, args: &[u64]) -> u64
Available on x86-64 only.
Expand description

Call a native function pointer with up to 6 integer/pointer arguments.

This is the generic trampoline for calling managed methods through the raw pointers returned by Runtime::method_pointer.

ยงSafety

ptr must be a valid function pointer. args must contain the correct number and types of arguments for the target function.