示例#1
0
        public static long get_received_bytes(cef_download_item_t *self)
        {
            get_received_bytes_delegate d;
            var p = self->_get_received_bytes;

            if (p == _pa)
            {
                d = _da;
            }
            else
            {
                d = (get_received_bytes_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_received_bytes_delegate));
                if (_pa == IntPtr.Zero)
                {
                    _da = d; _pa = p;
                }
            }
            return(d(self));
        }
 public static long get_received_bytes(cef_download_item_t* self)
 {
     get_received_bytes_delegate d;
     var p = self->_get_received_bytes;
     if (p == _pa) { d = _da; }
     else
     {
         d = (get_received_bytes_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_received_bytes_delegate));
         if (_pa == IntPtr.Zero) { _da = d; _pa = p; }
     }
     return d(self);
 }