Пример #1
0
        private static void SetupDebugLogCallback()
        {
            LogCallbackDelegate callbackDelegate = new LogCallbackDelegate(LogCallback);

            System.IntPtr func = Marshal.GetFunctionPointerForDelegate(callbackDelegate);
            NativePlugin.SetLogFunction(func);
        }
Пример #2
0
            internal Logger()
            {
                IntPtr func = Marshal.GetFunctionPointerForDelegate(_callbackDelegate);

                NativePlugin.SetLogFunction(func);
            }