Exemplo n.º 1
0
        public static long get_current_speed(cef_download_item_t *self)
        {
            get_current_speed_delegate d;
            var p = self->_get_current_speed;

            if (p == _p7)
            {
                d = _d7;
            }
            else
            {
                d = (get_current_speed_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_current_speed_delegate));
                if (_p7 == IntPtr.Zero)
                {
                    _d7 = d; _p7 = p;
                }
            }
            return(d(self));
        }
 public static long get_current_speed(cef_download_item_t* self)
 {
     get_current_speed_delegate d;
     var p = self->_get_current_speed;
     if (p == _p7) { d = _d7; }
     else
     {
         d = (get_current_speed_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_current_speed_delegate));
         if (_p7 == IntPtr.Zero) { _d7 = d; _p7 = p; }
     }
     return d(self);
 }