NativeAction
Namespace: SharpPluginLoader.Core
Represents a function pointer to a native function with no return type and no arguments. Equivalent to NativeFunction.
public struct NativeAction
Inheritance Object → ValueType → NativeAction
Properties
NativePointer
Gets the native function pointer.
public nint NativePointer { get; }
Property Value
Constructors
NativeAction(IntPtr)
NativeAction(nint funcPtr)
Parameters
funcPtr
IntPtr
Methods
Invoke()
Invokes the function pointer.
void Invoke()
InvokeUnsafe()
Invokes the function pointer without transitioning the Garbage Collector. Use this for very short functions.
void InvokeUnsafe()
Remarks:
See