public static cef_string_userfree *get_description(cef_web_plugin_info_t *self)
        {
            get_description_delegate d;
            var p = self->_get_description;

            if (p == _p6)
            {
                d = _d6;
            }
            else
            {
                d = (get_description_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_description_delegate));
                if (_p6 == IntPtr.Zero)
                {
                    _d6 = d; _p6 = p;
                }
            }
            return(d(self));
        }
        public static cef_string_userfree *get_description(cef_media_sink_t *self)
        {
            get_description_delegate d;
            var p = self->_get_description;

            if (p == _p7)
            {
                d = _d7;
            }
            else
            {
                d = (get_description_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_description_delegate));
                if (_p7 == IntPtr.Zero)
                {
                    _d7 = d; _p7 = p;
                }
            }
            return(d(self));
        }
Пример #3
0
 public static cef_string_userfree* get_description(cef_web_plugin_info_t* self)
 {
     get_description_delegate d;
     var p = self->_get_description;
     if (p == _p6) { d = _d6; }
     else
     {
         d = (get_description_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_description_delegate));
         if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; }
     }
     return d(self);
 }