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

◆ EncodeCharsAsync()

async Task System.Xml.XmlEncodedRawTextWriter.EncodeCharsAsync ( int startOffset,
int endOffset,
bool writeAllToStream )
inlineprivateinherited

Definition at line 2128 of file XmlEncodedRawTextWriter.cs.

2129 {
2130 while (startOffset < endOffset)
2131 {
2132 if (_charEntityFallback != null)
2133 {
2135 }
2137 startOffset += charsUsed;
2138 _bufBytesUsed += bytesUsed;
2139 if (_bufBytesUsed >= _bufBytes.Length - 16)
2140 {
2142 _bufBytesUsed = 0;
2143 }
2144 }
2146 {
2148 _bufBytesUsed = 0;
2149 }
2150 }
Task WriteAsync(byte[] buffer, int offset, int count)
Definition Stream.cs:914
virtual void Convert(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex, int byteCount, bool flush, out int charsUsed, out int bytesUsed, out bool completed)
Definition Encoder.cs:135
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
readonly CharEntityEncoderFallback _charEntityFallback

References System.Xml.XmlEncodedRawTextWriter._bufBytes, System.Xml.XmlEncodedRawTextWriter._bufBytesUsed, System.Xml.XmlEncodedRawTextWriter._bufChars, System.Xml.XmlEncodedRawTextWriter._charEntityFallback, System.Xml.XmlEncodedRawTextWriter._encoder, System.Xml.XmlEncodedRawTextWriter._stream, System.Text.Encoder.Convert(), System.Xml.Dictionary, and System.IO.Stream.WriteAsync().

Referenced by System.Xml.XmlEncodedRawTextWriter.FlushBufferAsync().