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

◆ WriteCharEntityAsync()

override async Task System.Xml.XmlUtf8RawTextWriter.WriteCharEntityAsync ( char ch)
inlinevirtual

Reimplemented from System.Xml.XmlRawWriter.

Reimplemented in System.Xml.XmlUtf8RawTextWriterIndent.

Definition at line 1716 of file XmlUtf8RawTextWriter.cs.

1717 {
1719 int num = ch;
1720 string text = num.ToString("X", NumberFormatInfo.InvariantInfo);
1721 if (_checkCharacters && !XmlCharType.IsCharData(ch))
1722 {
1723 throw XmlConvert.CreateInvalidCharException(ch, '\0');
1724 }
1725 _bufBytes[_bufPos++] = 38;
1726 _bufBytes[_bufPos++] = 35;
1727 _bufBytes[_bufPos++] = 120;
1729 _bufBytes[_bufPos++] = 59;
1730 if (_bufPos > _bufLen)
1731 {
1733 }
1734 _textPos = _bufPos;
1735 }
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226

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.XmlUtf8RawTextWriter.CheckAsyncCall(), System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.XmlConvert.CreateInvalidCharException(), System.Xml.Dictionary, System.Xml.XmlUtf8RawTextWriter.FlushBufferAsync(), System.Globalization.NumberFormatInfo.InvariantInfo, System.Xml.XmlCharType.IsCharData(), System.Xml.XmlUtf8RawTextWriter.RawTextAsync(), and System.text.