public static int set_string(cef_dictionary_value_t *self, cef_string_t *key, cef_string_t *value)
        {
            set_string_delegate d;
            var p = self->_set_string;

            if (p == _p1d)
            {
                d = _d1d;
            }
            else
            {
                d = (set_string_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_string_delegate));
                if (_p1d == IntPtr.Zero)
                {
                    _d1d = d; _p1d = p;
                }
            }
            return(d(self, key, value));
        }
Ejemplo n.º 2
0
        public static int set_string(cef_list_value_t *self, int index, cef_string_t *value)
        {
            set_string_delegate d;
            var p = self->_set_string;

            if (p == _p1b)
            {
                d = _d1b;
            }
            else
            {
                d = (set_string_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_string_delegate));
                if (_p1b == IntPtr.Zero)
                {
                    _d1b = d; _p1b = p;
                }
            }
            return(d(self, index, value));
        }
Ejemplo n.º 3
0
 public static int set_string(cef_list_value_t* self, int index, cef_string_t* value)
 {
     set_string_delegate d;
     var p = self->_set_string;
     if (p == _p17) { d = _d17; }
     else
     {
         d = (set_string_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_string_delegate));
         if (_p17 == IntPtr.Zero) { _d17 = d; _p17 = p; }
     }
     return d(self, index, value);
 }
 public static int set_string(cef_dictionary_value_t* self, cef_string_t* key, cef_string_t* value)
 {
     set_string_delegate d;
     var p = self->_set_string;
     if (p == _p18) { d = _d18; }
     else
     {
         d = (set_string_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_string_delegate));
         if (_p18 == IntPtr.Zero) { _d18 = d; _p18 = p; }
     }
     return d(self, key, value);
 }