Exemplo n.º 1
0
        public static cef_string_userfree *get_string(cef_list_value_t *self, int index)
        {
            get_string_delegate d;
            var p = self->_get_string;

            if (p == _pf)
            {
                d = _df;
            }
            else
            {
                d = (get_string_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_string_delegate));
                if (_pf == IntPtr.Zero)
                {
                    _df = d; _pf = p;
                }
            }
            return(d(self, index));
        }
Exemplo n.º 2
0
        public static cef_string_userfree *get_string(cef_dictionary_value_t *self, cef_string_t *key)
        {
            get_string_delegate d;
            var p = self->_get_string;

            if (p == _p13)
            {
                d = _d13;
            }
            else
            {
                d = (get_string_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_string_delegate));
                if (_p13 == IntPtr.Zero)
                {
                    _d13 = d; _p13 = p;
                }
            }
            return(d(self, key));
        }
Exemplo n.º 3
0
 public static cef_string_userfree* get_string(cef_list_value_t* self, int index)
 {
     get_string_delegate d;
     var p = self->_get_string;
     if (p == _pf) { d = _df; }
     else
     {
         d = (get_string_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_string_delegate));
         if (_pf == IntPtr.Zero) { _df = d; _pf = p; }
     }
     return d(self, index);
 }
 public static cef_string_userfree* get_string(cef_dictionary_value_t* self, cef_string_t* key)
 {
     get_string_delegate d;
     var p = self->_get_string;
     if (p == _p10) { d = _d10; }
     else
     {
         d = (get_string_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_string_delegate));
         if (_p10 == IntPtr.Zero) { _d10 = d; _p10 = p; }
     }
     return d(self, key);
 }