get_function_pointer_fn

Type Alias get_function_pointer_fn 

Source
pub type get_function_pointer_fn = unsafe extern "system" fn(type_name: *const char_t, method_name: *const char_t, delegate_type_name: *const char_t, load_context: *const c_void, reserved: *const c_void, delegate: *mut *const c_void) -> i32;
Available on crate feature net5_0 only.
Expand description

Signature of delegate returned by hostfxr_get_runtime_delegate for type hdt_get_function_pointer

Calling this function will find the specified type in the default load context, locate the required method on it and return a native function pointer to that method. The method’s signature can be specified via the delegate type name.

§Arguments

  • type_name: Assembly qualified type name
  • method_name: Public static method name compatible with delegateType
  • delegate_type_name: Assembly qualified delegate type name or null, or UNMANAGED_CALLERS_ONLY_METHOD if the method is marked with the UnmanagedCallersOnlyAttribute.
  • load_context: Extensibility parameter (currently unused and must be 0)
  • reserved: Extensibility parameter (currently unused and must be 0)
  • delegate: Pointer where to store the function pointer result