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

◆ ReadElementContentAsString() [1/2]

override string System.Xml.XmlBinaryReader.ReadElementContentAsString ( )
inlinevirtual

Reimplemented from System.Xml.XmlBaseReader.

Definition at line 79 of file XmlBinaryReader.cs.

80 {
81 if (base.Node.NodeType != XmlNodeType.Element)
82 {
84 }
86 {
87 return base.ReadElementContentAsString();
88 }
89 string text;
90 switch (GetNodeType())
91 {
92 case XmlBinaryNodeType.Chars8TextWithEndElement:
94 text = base.BufferReader.ReadUTF8String(ReadUInt8());
96 break;
97 case XmlBinaryNodeType.DictionaryTextWithEndElement:
99 text = base.BufferReader.GetDictionaryString(ReadDictionaryKey()).Value;
101 break;
102 default:
103 text = base.ReadElementContentAsString();
104 break;
105 }
107 {
108 XmlExceptionHelper.ThrowMaxStringContentLengthExceeded(this, Quotas.MaxStringContentLength);
109 }
110 return text;
111 }
override XmlDictionaryReaderQuotas Quotas
XmlBinaryNodeType GetNodeType()

References System.Xml.XmlBinaryReader.CanOptimizeReadElementContent(), System.Xml.Dictionary, System.Xml.XmlBinaryReader.GetNodeType(), System.Xml.XmlDictionaryReaderQuotas.MaxStringContentLength, System.Xml.XmlDictionaryReader.MoveToStartElement(), System.Xml.XmlBaseReader.Quotas, System.Xml.XmlBinaryReader.ReadDictionaryKey(), System.Xml.XmlBinaryReader.ReadTextWithEndElement(), System.Xml.XmlBinaryReader.ReadUInt8(), System.Xml.XmlBinaryReader.SkipNodeType(), System.text, and System.Xml.XmlExceptionHelper.ThrowMaxStringContentLengthExceeded().