Exemple #1
0
        public static int has_attributes(cef_xml_reader_t *self)
        {
            has_attributes_delegate d;
            var p = self->_has_attributes;

            if (p == _p12)
            {
                d = _d12;
            }
            else
            {
                d = (has_attributes_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_attributes_delegate));
                if (_p12 == IntPtr.Zero)
                {
                    _d12 = d; _p12 = p;
                }
            }
            return(d(self));
        }
 public static int has_attributes(cef_xml_reader_t* self)
 {
     has_attributes_delegate d;
     var p = self->_has_attributes;
     if (p == _p12) { d = _d12; }
     else
     {
         d = (has_attributes_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_attributes_delegate));
         if (_p12 == IntPtr.Zero) { _d12 = d; _p12 = p; }
     }
     return d(self);
 }