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

◆ FlushBuffer()

virtual void System.Xml.XmlEncodedRawTextWriter.FlushBuffer ( )
inlineprotectedvirtualinherited

Reimplemented in System.Xml.HtmlEncodedRawTextWriterIndent.

Definition at line 645 of file XmlEncodedRawTextWriter.cs.

646 {
647 try
648 {
649 if (_writeToNull)
650 {
651 return;
652 }
653 if (_stream != null)
654 {
656 {
658 if (((uint)_lastMarkPos & (true ? 1u : 0u)) != 0)
659 {
660 _textContentMarks[1] = 1;
661 _lastMarkPos = 1;
662 }
663 else
664 {
665 _lastMarkPos = 0;
666 }
667 }
669 }
670 else if (_bufPos - 1 > 0)
671 {
673 }
674 }
675 catch
676 {
677 _writeToNull = true;
678 throw;
679 }
680 finally
681 {
682 _bufChars[0] = _bufChars[_bufPos - 1];
683 _textPos = ((_textPos == _bufPos) ? 1 : 0);
684 _attrEndPos = ((_attrEndPos == _bufPos) ? 1 : 0);
685 _contentPos = 0;
686 _cdataPos = 0;
687 _bufPos = 1;
688 }
689 }
virtual void Write(char value)
void Reset(int[] textContentMarks, int endMarkPos)
readonly CharEntityEncoderFallback _charEntityFallback
void EncodeChars(int startOffset, int endOffset, bool writeAllToStream)

References System.Xml.XmlEncodedRawTextWriter._attrEndPos, System.Xml.XmlEncodedRawTextWriter._bufChars, System.Xml.XmlEncodedRawTextWriter._bufPos, System.Xml.XmlEncodedRawTextWriter._cdataPos, System.Xml.XmlEncodedRawTextWriter._charEntityFallback, System.Xml.XmlEncodedRawTextWriter._contentPos, System.Xml.XmlEncodedRawTextWriter._lastMarkPos, System.Xml.XmlEncodedRawTextWriter._stream, System.Xml.XmlEncodedRawTextWriter._textContentMarks, System.Xml.XmlEncodedRawTextWriter._textPos, System.Xml.XmlEncodedRawTextWriter._trackTextContent, System.Xml.XmlEncodedRawTextWriter._writer, System.Xml.XmlEncodedRawTextWriter._writeToNull, System.Xml.Dictionary, System.Xml.XmlEncodedRawTextWriter.EncodeChars(), System.Xml.CharEntityEncoderFallback.Reset(), and System.IO.TextWriter.Write().

Referenced by System.Xml.XmlEncodedRawTextWriter.Close(), System.Xml.XmlEncodedRawTextWriter.Flush(), System.Xml.XmlEncodedRawTextWriter.RawText(), System.Xml.XmlEncodedRawTextWriter.WriteAttributeTextBlock(), System.Xml.XmlEncodedRawTextWriter.WriteCDataSection(), System.Xml.XmlEncodedRawTextWriter.WriteCharEntity(), System.Xml.XmlEncodedRawTextWriter.WriteCommentOrPi(), System.Xml.XmlEncodedRawTextWriter.WriteElementTextBlock(), System.Xml.XmlEncodedRawTextWriter.WriteEntityRef(), System.Xml.HtmlEncodedRawTextWriter.WriteHtmlAttributeText(), System.Xml.HtmlEncodedRawTextWriter.WriteProcessingInstruction(), System.Xml.XmlEncodedRawTextWriter.WriteRawWithCharChecking(), and System.Xml.HtmlEncodedRawTextWriter.WriteUriAttributeText().