public static cef_dictionary_value_t *get_dictionary(cef_list_value_t *self, int index)
        {
            get_dictionary_delegate d;
            var p = self->_get_dictionary;

            if (p == _p11)
            {
                d = _d11;
            }
            else
            {
                d = (get_dictionary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_dictionary_delegate));
                if (_p11 == IntPtr.Zero)
                {
                    _d11 = d; _p11 = p;
                }
            }
            return(d(self, index));
        }
Esempio n. 2
0
        public static cef_dictionary_value_t *get_dictionary(cef_dictionary_value_t *self, cef_string_t *key)
        {
            get_dictionary_delegate d;
            var p = self->_get_dictionary;

            if (p == _p15)
            {
                d = _d15;
            }
            else
            {
                d = (get_dictionary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_dictionary_delegate));
                if (_p15 == IntPtr.Zero)
                {
                    _d15 = d; _p15 = p;
                }
            }
            return(d(self, key));
        }
Esempio n. 3
0
        public static cef_dictionary_value_t *get_dictionary(cef_value_t *self)
        {
            get_dictionary_delegate d;
            var p = self->_get_dictionary;

            if (p == _pf)
            {
                d = _df;
            }
            else
            {
                d = (get_dictionary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_dictionary_delegate));
                if (_pf == IntPtr.Zero)
                {
                    _df = d; _pf = p;
                }
            }
            return(d(self));
        }
Esempio n. 4
0
 public static cef_dictionary_value_t* get_dictionary(cef_list_value_t* self, int index)
 {
     get_dictionary_delegate d;
     var p = self->_get_dictionary;
     if (p == _p11) { d = _d11; }
     else
     {
         d = (get_dictionary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_dictionary_delegate));
         if (_p11 == IntPtr.Zero) { _d11 = d; _p11 = p; }
     }
     return d(self, index);
 }
 public static cef_dictionary_value_t* get_dictionary(cef_dictionary_value_t* self, cef_string_t* key)
 {
     get_dictionary_delegate d;
     var p = self->_get_dictionary;
     if (p == _p12) { d = _d12; }
     else
     {
         d = (get_dictionary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_dictionary_delegate));
         if (_p12 == IntPtr.Zero) { _d12 = d; _p12 = p; }
     }
     return d(self, key);
 }