Esempio n. 1
0
        public static int move_to_attribute_bylname(cef_xml_reader_t *self, cef_string_t *localName, cef_string_t *namespaceURI)
        {
            move_to_attribute_bylname_delegate d;
            var p = self->_move_to_attribute_bylname;

            if (p == _p1c)
            {
                d = _d1c;
            }
            else
            {
                d = (move_to_attribute_bylname_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(move_to_attribute_bylname_delegate));
                if (_p1c == IntPtr.Zero)
                {
                    _d1c = d; _p1c = p;
                }
            }
            return(d(self, localName, namespaceURI));
        }
 public static int move_to_attribute_bylname(cef_xml_reader_t* self, cef_string_t* localName, cef_string_t* namespaceURI)
 {
     move_to_attribute_bylname_delegate d;
     var p = self->_move_to_attribute_bylname;
     if (p == _p1c) { d = _d1c; }
     else
     {
         d = (move_to_attribute_bylname_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(move_to_attribute_bylname_delegate));
         if (_p1c == IntPtr.Zero) { _d1c = d; _p1c = p; }
     }
     return d(self, localName, namespaceURI);
 }