public static double get_double(cef_list_value_t *self, int index)
        {
            get_double_delegate d;
            var p = self->_get_double;

            if (p == _pe)
            {
                d = _de;
            }
            else
            {
                d = (get_double_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_double_delegate));
                if (_pe == IntPtr.Zero)
                {
                    _de = d; _pe = p;
                }
            }
            return(d(self, index));
        }
Beispiel #2
0
        public static double get_double(cef_dictionary_value_t *self, cef_string_t *key)
        {
            get_double_delegate d;
            var p = self->_get_double;

            if (p == _p12)
            {
                d = _d12;
            }
            else
            {
                d = (get_double_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_double_delegate));
                if (_p12 == IntPtr.Zero)
                {
                    _d12 = d; _p12 = p;
                }
            }
            return(d(self, key));
        }
Beispiel #3
0
        public static double get_double(cef_value_t *self)
        {
            get_double_delegate d;
            var p = self->_get_double;

            if (p == _pc)
            {
                d = _dc;
            }
            else
            {
                d = (get_double_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_double_delegate));
                if (_pc == IntPtr.Zero)
                {
                    _dc = d; _pc = p;
                }
            }
            return(d(self));
        }
Beispiel #4
0
 public static double get_double(cef_list_value_t* self, int index)
 {
     get_double_delegate d;
     var p = self->_get_double;
     if (p == _pe) { d = _de; }
     else
     {
         d = (get_double_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_double_delegate));
         if (_pe == IntPtr.Zero) { _de = d; _pe = p; }
     }
     return d(self, index);
 }
 public static double get_double(cef_dictionary_value_t* self, cef_string_t* key)
 {
     get_double_delegate d;
     var p = self->_get_double;
     if (p == _pf) { d = _df; }
     else
     {
         d = (get_double_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_double_delegate));
         if (_pf == IntPtr.Zero) { _df = d; _pf = p; }
     }
     return d(self, key);
 }