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

◆ EncodeChars()

void System.Xml.XmlEncodedRawTextWriter.EncodeChars ( int startOffset,
int endOffset,
bool writeAllToStream )
inlineprivateinherited

Definition at line 691 of file XmlEncodedRawTextWriter.cs.

692 {
693 while (startOffset < endOffset)
694 {
695 if (_charEntityFallback != null)
696 {
698 }
700 startOffset += charsUsed;
701 _bufBytesUsed += bytesUsed;
702 if (_bufBytesUsed >= _bufBytes.Length - 16)
703 {
705 _bufBytesUsed = 0;
706 }
707 }
709 {
711 _bufBytesUsed = 0;
712 }
713 }
void Write(byte[] buffer, int offset, int count)
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
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.Write().

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