Method CreateManagedToNativeHelper
CreateManagedToNativeHelper(nint, out IDisposable?)
Creates a managed to native thunk for this exception helper.
nint CreateManagedToNativeHelper(nint target, out IDisposable? handle)
Parameters
target
nint- The function pointer for the native code to call.
handle
IDisposable- A handle to any memory allocations made for the thunk. This must be kept alive as long as the returned pointer is in use.
Returns
- nint
- A pointer to the thunk for managed code to call instead of
target
.