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

◆ WriteCharEntity()

override void System.Xml.XmlUtf8RawTextWriter.WriteCharEntity ( char ch)
inline

Definition at line 355 of file XmlUtf8RawTextWriter.cs.

356 {
357 int num = ch;
358 string s = num.ToString("X", NumberFormatInfo.InvariantInfo);
359 if (_checkCharacters && !XmlCharType.IsCharData(ch))
360 {
361 throw XmlConvert.CreateInvalidCharException(ch, '\0');
362 }
363 _bufBytes[_bufPos++] = 38;
364 _bufBytes[_bufPos++] = 35;
365 _bufBytes[_bufPos++] = 120;
366 RawText(s);
367 _bufBytes[_bufPos++] = 59;
368 if (_bufPos > _bufLen)
369 {
370 FlushBuffer();
371 }
373 }

References System.Xml.XmlUtf8RawTextWriter._bufBytes, System.Xml.XmlUtf8RawTextWriter._bufLen, System.Xml.XmlUtf8RawTextWriter._bufPos, System.Xml.XmlUtf8RawTextWriter._checkCharacters, System.Xml.XmlUtf8RawTextWriter._textPos, System.ch, System.Xml.XmlConvert.CreateInvalidCharException(), System.Xml.XmlUtf8RawTextWriter.FlushBuffer(), System.Globalization.NumberFormatInfo.InvariantInfo, System.Xml.XmlCharType.IsCharData(), System.Xml.XmlUtf8RawTextWriter.RawText(), and System.s.