NativeFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TRet>
Namespace: SharpPluginLoader.Core
Represents a function pointer to a native function with the given return type and arguments.
public struct NativeFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TRet>
Type Parameters
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
TRet
Inheritance Object → ValueType → NativeFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TRet>
Properties
NativePointer
Gets the native function pointer.
public nint NativePointer { get; }
Property Value
Invoke
Invokes the function pointer.
public Invoke { get; }
Property Value
InvokeUnsafe
Invokes the function pointer without transitioning the Garbage Collector. Use this for very short functions.
public InvokeUnsafe { get; }
Property Value
Remarks:
See SuppressGCTransitionAttribute
Constructors
NativeFunction(IntPtr)
NativeFunction(nint funcPtr)
Parameters
funcPtr
IntPtr
NativeFunction(Int64)
NativeFunction(long funcPtr)
Parameters
funcPtr
Int64