public void SetExport(string key, Function function) { unsafe { if (function == null) { return; } functionExports[key] = function; MValueFunctionCallback callDelegate = function.Call; functionExportHandles.AddFirst(GCHandle.Alloc(callDelegate)); this.CreateMValueFunction(out var mValue, this.Library.Shared.Invoker_Create(Resource.ResourceImplPtr, callDelegate)); Resource.SetExport(key, in mValue); mValue.Dispose(); } }
public IntPtr CreateInvoker(MValueFunctionCallback function) { return(AltNative.MValueNative.Invoker_Create(NativePointer, function)); }
public FunctionWrapper(ISharedCore core, MValueFunctionCallback function) { this.core = core; this.function = function; }
public FunctionWrapper(MValueFunctionCallback function) { this.function = function; }
internal static extern IntPtr Invoker_Create(IntPtr resource, MValueFunctionCallback val);