internal static void may_block(IntPtr gcHandlePtr, out int __retval)
        {
            var self = (CfxReadHandler)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target;

            if (self == null || self.CallbacksDisabled)
            {
                __retval = default(int);
                return;
            }
            var e = new CfxMayBlockEventArgs();

            self.m_MayBlock?.Invoke(self, e);
            e.m_isInvalid = true;
            __retval      = e.m_returnValue ? 1 : 0;
        }
예제 #2
0
        internal static void may_block(IntPtr gcHandlePtr, out int __retval)
        {
            var self = (CfxReadHandler)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target;

            if (self == null)
            {
                __retval = default(int);
                return;
            }
            var e            = new CfxMayBlockEventArgs();
            var eventHandler = self.m_MayBlock;

            if (eventHandler != null)
            {
                eventHandler(self, e);
            }
            e.m_isInvalid = true;
            __retval      = e.m_returnValue ? 1 : 0;
        }
예제 #3
0
 internal static void may_block(IntPtr gcHandlePtr, out int __retval)
 {
     var self = (CfxWriteHandler)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target;
     if(self == null) {
         __retval = default(int);
         return;
     }
     var e = new CfxMayBlockEventArgs();
     var eventHandler = self.m_MayBlock;
     if(eventHandler != null) eventHandler(self, e);
     e.m_isInvalid = true;
     __retval = e.m_returnValue ? 1 : 0;
 }