Table of Contents

Struct NativeAction<T1, T2, T3>

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>

Type Parameters

T1
T2
T3
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, void> Invoke { get; }

Property Value

delegate* unmanaged<T1, T2, T3, void>

InvokeUnsafe

Invokes the function pointer without transitioning the Garbage Collector. Use this for very short functions.

public delegate* unmanaged[SuppressGCTransition]<T1, T2, T3, void> InvokeUnsafe { get; }

Property Value

delegate* unmanaged[SuppressGCTransition]<T1, T2, T3, void>

Remarks

NativePointer

Gets the native function pointer.

public nint NativePointer { get; }

Property Value

nint