Beispiel #1
0
        public static int is_empty_element(cef_xml_reader_t *self)
        {
            is_empty_element_delegate d;
            var p = self->_is_empty_element;

            if (p == _pf)
            {
                d = _df;
            }
            else
            {
                d = (is_empty_element_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_empty_element_delegate));
                if (_pf == IntPtr.Zero)
                {
                    _df = d; _pf = p;
                }
            }
            return(d(self));
        }
 public static int is_empty_element(cef_xml_reader_t* self)
 {
     is_empty_element_delegate d;
     var p = self->_is_empty_element;
     if (p == _pf) { d = _df; }
     else
     {
         d = (is_empty_element_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_empty_element_delegate));
         if (_pf == IntPtr.Zero) { _df = d; _pf = p; }
     }
     return d(self);
 }