Beispiel #1
0
        public static UIntPtr get_element_count(cef_post_data_t *self)
        {
            get_element_count_delegate d;
            var p = self->_get_element_count;

            if (p == _p6)
            {
                d = _d6;
            }
            else
            {
                d = (get_element_count_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_element_count_delegate));
                if (_p6 == IntPtr.Zero)
                {
                    _d6 = d; _p6 = p;
                }
            }
            return(d(self));
        }
Beispiel #2
0
 public static UIntPtr get_element_count(cef_post_data_t* self)
 {
     get_element_count_delegate d;
     var p = self->_get_element_count;
     if (p == _p4) { d = _d4; }
     else
     {
         d = (get_element_count_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_element_count_delegate));
         if (_p4 == IntPtr.Zero) { _d4 = d; _p4 = p; }
     }
     return d(self);
 }