Ejemplo n.º 1
0
        public static int is_in_progress(cef_download_item_t *self)
        {
            is_in_progress_delegate d;
            var p = self->_is_in_progress;

            if (p == _p4)
            {
                d = _d4;
            }
            else
            {
                d = (is_in_progress_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_in_progress_delegate));
                if (_p4 == IntPtr.Zero)
                {
                    _d4 = d; _p4 = p;
                }
            }
            return(d(self));
        }
 public static int is_in_progress(cef_download_item_t* self)
 {
     is_in_progress_delegate d;
     var p = self->_is_in_progress;
     if (p == _p4) { d = _d4; }
     else
     {
         d = (is_in_progress_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_in_progress_delegate));
         if (_p4 == IntPtr.Zero) { _d4 = d; _p4 = p; }
     }
     return d(self);
 }