Class PluginPInvokeExtension
- Namespace
- Hi3Helper.Plugin.Core.Utility
- Assembly
- Hi3Helper.Plugin.Core.dll
public static class PluginPInvokeExtension
- Inheritance
-
PluginPInvokeExtension
- Inherited Members
-
Methods
TryGetExportUnsafe(nint, string, out delegate* unmanaged[Cdecl]<void>)
public static bool TryGetExportUnsafe(this nint handle, string exportName, out delegate* unmanaged[Cdecl]<void> delegateC)
Parameters
handle nint
exportName string
delegateC delegate* unmanaged[Cdecl]<void>
Returns
- bool
TryGetExportUnsafe(nint, string, out nint)
public static bool TryGetExportUnsafe(this nint handle, string exportName, out nint callbackP)
Parameters
handle nint
exportName string
callbackP nint
Returns
- bool
TryGetExportUnsafe<T1>(nint, string, out delegate* unmanaged[Cdecl]<T1, void>)
public static bool TryGetExportUnsafe<T1>(this nint handle, string exportName, out delegate* unmanaged[Cdecl]<T1, void> delegateC) where T1 : unmanaged, allows ref struct
Parameters
handle nint
exportName string
delegateC delegate* unmanaged[Cdecl]<T1, void>
Returns
- bool
Type Parameters
T1
TryGetExportUnsafe<T1>(nint, string, out delegate* unmanaged[Cdecl]<T1, void>)
public static bool TryGetExportUnsafe<T1>(this nint handle, string exportName, out delegate* unmanaged[Cdecl]<T1, void> delegateC) where T1 : unmanaged, allows ref struct
Parameters
handle nint
exportName string
delegateC delegate* unmanaged[Cdecl]<T1, void>
Returns
- bool
Type Parameters
T1
TryGetExportUnsafe<T1, T2>(nint, string, out delegate* unmanaged[Cdecl]<T1, T2, void>)
public static bool TryGetExportUnsafe<T1, T2>(this nint handle, string exportName, out delegate* unmanaged[Cdecl]<T1, T2, void> delegateC) where T1 : unmanaged, allows ref struct where T2 : unmanaged, allows ref struct
Parameters
handle nint
exportName string
delegateC delegate* unmanaged[Cdecl]<T1, T2, void>
Returns
- bool
Type Parameters
T1
T2
TryGetExportUnsafe<T1, T2>(nint, string, out delegate* unmanaged[Cdecl]<T1, T2, void>)
public static bool TryGetExportUnsafe<T1, T2>(this nint handle, string exportName, out delegate* unmanaged[Cdecl]<T1, T2, void> delegateC) where T1 : unmanaged, allows ref struct where T2 : unmanaged, allows ref struct
Parameters
handle nint
exportName string
delegateC delegate* unmanaged[Cdecl]<T1, T2, void>
Returns
- bool
Type Parameters
T1
T2
TryGetExportUnsafe<T1, T2, T3>(nint, string, out delegate* unmanaged[Cdecl]<T1, T2, T3, void>)
public static bool TryGetExportUnsafe<T1, T2, T3>(this nint handle, string exportName, out delegate* unmanaged[Cdecl]<T1, T2, T3, void> delegateC) where T1 : unmanaged, allows ref struct where T2 : unmanaged, allows ref struct where T3 : unmanaged, allows ref struct
Parameters
handle nint
exportName string
delegateC delegate* unmanaged[Cdecl]<T1, T2, T3, void>
Returns
- bool
Type Parameters
T1
T2
T3
TryGetExportUnsafe<T1, T2, T3>(nint, string, out delegate* unmanaged[Cdecl]<T1, T2, T3, void>)
public static bool TryGetExportUnsafe<T1, T2, T3>(this nint handle, string exportName, out delegate* unmanaged[Cdecl]<T1, T2, T3, void> delegateC) where T1 : unmanaged, allows ref struct where T2 : unmanaged, allows ref struct where T3 : unmanaged, allows ref struct
Parameters
handle nint
exportName string
delegateC delegate* unmanaged[Cdecl]<T1, T2, T3, void>
Returns
- bool
Type Parameters
T1
T2
T3
TryGetExportUnsafe<T1, T2, T3, TReturn>(nint, string, out delegate* unmanaged[Cdecl]<T1, T2, T3, TReturn>)
public static bool TryGetExportUnsafe<T1, T2, T3, TReturn>(this nint handle, string exportName, out delegate* unmanaged[Cdecl]<T1, T2, T3, TReturn> delegateC) where T1 : unmanaged, allows ref struct where T2 : unmanaged, allows ref struct where T3 : unmanaged, allows ref struct
Parameters
handle nint
exportName string
delegateC delegate* unmanaged[Cdecl]<T1, T2, T3, TReturn>
Returns
- bool
Type Parameters
T1
T2
T3
TReturn
TryGetExport<T>(nint, string, out T)
public static bool TryGetExport<T>(this nint handle, string exportName, out T callback) where T : Delegate
Parameters
handle nint
exportName string
callback T
Returns
- bool
Type Parameters
T