Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReadEndElement()

new void System.Xml.XmlUTF8TextReader.ReadEndElement ( )
inlineprivatevirtual

Reimplemented from System.Xml.XmlBaseReader.

Definition at line 551 of file XmlUTF8TextReader.cs.

552 {
553 base.BufferReader.SkipByte();
554 XmlElementNode elementNode = base.ElementNode;
555 int nameOffset = elementNode.NameOffset;
556 int nameLength = elementNode.NameLength;
557 int offset;
558 byte[] buffer = base.BufferReader.GetBuffer(nameLength, out offset);
559 for (int i = 0; i < nameLength; i++)
560 {
561 if (buffer[offset + i] != buffer[nameOffset + i])
562 {
564 XmlExceptionHelper.ThrowTagMismatch(this, elementNode.Prefix.GetString(), elementNode.LocalName.GetString(), _prefix.GetString(), _localName.GetString());
565 }
566 }
567 base.BufferReader.Advance(nameLength);
568 if (base.BufferReader.GetByte() != 62)
569 {
571 if (base.BufferReader.GetByte() != 62)
572 {
573 XmlExceptionHelper.ThrowTokenExpected(this, ">", (char)base.BufferReader.GetByte());
574 }
575 }
576 base.BufferReader.SkipByte();
578 }
static string GetString(PrefixHandleType type)
string GetString(XmlNameTable nameTable)
readonly StringHandle _localName
readonly PrefixHandle _prefix
void ReadQualifiedName(PrefixHandle prefix, StringHandle localName)

References System.Xml.XmlUTF8TextReader._localName, System.Xml.XmlUTF8TextReader._prefix, System.buffer, System.Xml.Dictionary, System.Xml.PrefixHandle.GetString(), System.Xml.StringHandle.GetString(), System.Xml.XmlBaseReader.MoveToEndElement(), System.Xml.XmlBaseReader.XmlElementNode.NameOffset, System.offset, System.Xml.XmlUTF8TextReader.ReadQualifiedName(), System.Xml.XmlUTF8TextReader.SkipWhitespace(), System.Xml.XmlExceptionHelper.ThrowTagMismatch(), and System.Xml.XmlExceptionHelper.ThrowTokenExpected().

Referenced by System.Xml.XmlUTF8TextReader.Read().