Struct NativeAction
- Namespace
- SharpPluginLoader.Core
- Assembly
- SharpPluginLoader.Core.dll
Represents a function pointer to a native function with no return type and no arguments. Equivalent to NativeFunction.
public readonly struct NativeAction
- Inherited Members
Constructors
NativeAction(nint)
public NativeAction(nint funcPtr)
Parameters
funcPtr
nint
Properties
NativePointer
Gets the native function pointer.
public nint NativePointer { get; }
Property Value
Methods
Invoke()
Invokes the function pointer.
public void Invoke()
InvokeUnsafe()
Invokes the function pointer without transitioning the Garbage Collector. Use this for very short functions.
public void InvokeUnsafe()