Struct NativeAction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>
- Namespace
- SharpPluginLoader.Core
- Assembly
- SharpPluginLoader.Core.dll
Represents a function pointer to a native function with the given return type and arguments.
public readonly struct NativeAction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>
Type Parameters
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
- Inherited Members
Constructors
NativeAction(long)
public NativeAction(long funcPtr)
Parameters
funcPtr
long
NativeAction(nint)
public NativeAction(nint funcPtr)
Parameters
funcPtr
nint
Properties
Invoke
Invokes the function pointer.
public delegate* unmanaged<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, void> Invoke { get; }
Property Value
- delegate* unmanaged<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, void>
InvokeUnsafe
Invokes the function pointer without transitioning the Garbage Collector. Use this for very short functions.
public delegate* unmanaged[SuppressGCTransition]<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, void> InvokeUnsafe { get; }
Property Value
- delegate* unmanaged[SuppressGCTransition]<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, void>
Remarks
NativePointer
Gets the native function pointer.
public nint NativePointer { get; }