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

◆ WriteCharEntity()

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

Definition at line 452 of file XmlEncodedRawTextWriter.cs.

453 {
454 int num = ch;
455 string s = num.ToString("X", NumberFormatInfo.InvariantInfo);
456 if (_checkCharacters && !XmlCharType.IsCharData(ch))
457 {
458 throw XmlConvert.CreateInvalidCharException(ch, '\0');
459 }
461 {
463 }
464 _bufChars[_bufPos++] = '&';
465 _bufChars[_bufPos++] = '#';
466 _bufChars[_bufPos++] = 'x';
467 RawText(s);
468 _bufChars[_bufPos++] = ';';
469 if (_bufPos > _bufLen)
470 {
471 FlushBuffer();
472 }
474 }

References System.Xml.XmlEncodedRawTextWriter._bufChars, System.Xml.XmlEncodedRawTextWriter._bufLen, System.Xml.XmlEncodedRawTextWriter._bufPos, System.Xml.XmlEncodedRawTextWriter._checkCharacters, System.Xml.XmlEncodedRawTextWriter._inTextContent, System.Xml.XmlEncodedRawTextWriter._textPos, System.Xml.XmlEncodedRawTextWriter._trackTextContent, System.ch, System.Xml.XmlEncodedRawTextWriter.ChangeTextContentMark(), System.Xml.XmlConvert.CreateInvalidCharException(), System.Xml.XmlEncodedRawTextWriter.FlushBuffer(), System.Globalization.NumberFormatInfo.InvariantInfo, System.Xml.XmlCharType.IsCharData(), System.Xml.XmlEncodedRawTextWriter.RawText(), System.s, and System.value.