예제 #1
0
        public static cef_binary_value_t *get_binary(cef_list_value_t *self, int index)
        {
            get_binary_delegate d;
            var p = self->_get_binary;

            if (p == _p10)
            {
                d = _d10;
            }
            else
            {
                d = (get_binary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_binary_delegate));
                if (_p10 == IntPtr.Zero)
                {
                    _d10 = d; _p10 = p;
                }
            }
            return(d(self, index));
        }
예제 #2
0
        public static cef_binary_value_t *get_binary(cef_dictionary_value_t *self, cef_string_t *key)
        {
            get_binary_delegate d;
            var p = self->_get_binary;

            if (p == _p14)
            {
                d = _d14;
            }
            else
            {
                d = (get_binary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_binary_delegate));
                if (_p14 == IntPtr.Zero)
                {
                    _d14 = d; _p14 = p;
                }
            }
            return(d(self, key));
        }
예제 #3
0
        public static cef_binary_value_t *get_binary(cef_value_t *self)
        {
            get_binary_delegate d;
            var p = self->_get_binary;

            if (p == _pe)
            {
                d = _de;
            }
            else
            {
                d = (get_binary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_binary_delegate));
                if (_pe == IntPtr.Zero)
                {
                    _de = d; _pe = p;
                }
            }
            return(d(self));
        }
예제 #4
0
 public static cef_binary_value_t* get_binary(cef_list_value_t* self, int index)
 {
     get_binary_delegate d;
     var p = self->_get_binary;
     if (p == _p10) { d = _d10; }
     else
     {
         d = (get_binary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_binary_delegate));
         if (_p10 == IntPtr.Zero) { _d10 = d; _p10 = p; }
     }
     return d(self, index);
 }
 public static cef_binary_value_t* get_binary(cef_dictionary_value_t* self, cef_string_t* key)
 {
     get_binary_delegate d;
     var p = self->_get_binary;
     if (p == _p11) { d = _d11; }
     else
     {
         d = (get_binary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_binary_delegate));
         if (_p11 == IntPtr.Zero) { _d11 = d; _p11 = p; }
     }
     return d(self, key);
 }