NativeFunction
Namespace: SharpPluginLoader.Core
Represents a function pointer to a native function with no return type and no arguments. Equivalent to NativeAction.
public struct NativeFunction
Inheritance Object → ValueType → NativeFunction
Properties
NativePointer
Gets the native function pointer.
public nint NativePointer { get; }
Property Value
Constructors
NativeFunction(IntPtr)
NativeFunction(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