Skip to main content

invoke_method

Function invoke_method 

Source
pub fn invoke_method(
    method: *mut c_void,
    obj: *mut c_void,
    params: *const *mut c_void,
) -> Result<*mut c_void, String>
Expand description

Invokes an IL2CPP method using raw pointers.

This is the low-level escape hatch behind crate::structs::Method::call. Prefer that higher-level API unless you already have raw MethodInfo, object, and parameter pointers.

Managed exceptions are intercepted and returned as Err(String).