Beispiel #1
0
        public static int set_int(cef_dictionary_value_t *self, cef_string_t *key, int value)
        {
            set_int_delegate d;
            var p = self->_set_int;

            if (p == _p16)
            {
                d = _d16;
            }
            else
            {
                d = (set_int_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_int_delegate));
                if (_p16 == IntPtr.Zero)
                {
                    _d16 = d; _p16 = p;
                }
            }
            return(d(self, key, value));
        }
Beispiel #2
0
        public static int set_int(cef_value_t *self, int value)
        {
            set_int_delegate d;
            var p = self->_set_int;

            if (p == _p14)
            {
                d = _d14;
            }
            else
            {
                d = (set_int_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_int_delegate));
                if (_p14 == IntPtr.Zero)
                {
                    _d14 = d; _p14 = p;
                }
            }
            return(d(self, value));
        }
Beispiel #3
0
 public static int set_int(cef_list_value_t* self, int index, int value)
 {
     set_int_delegate d;
     var p = self->_set_int;
     if (p == _p15) { d = _d15; }
     else
     {
         d = (set_int_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_int_delegate));
         if (_p15 == IntPtr.Zero) { _d15 = d; _p15 = p; }
     }
     return d(self, index, value);
 }
 public static int set_int(cef_dictionary_value_t* self, cef_string_t* key, int value)
 {
     set_int_delegate d;
     var p = self->_set_int;
     if (p == _p16) { d = _d16; }
     else
     {
         d = (set_int_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_int_delegate));
         if (_p16 == IntPtr.Zero) { _d16 = d; _p16 = p; }
     }
     return d(self, key, value);
 }