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

◆ WriteCharsAsync()

override Task System.Xml.XmlCharCheckingWriter.WriteCharsAsync ( char[] buffer,
int index,
int count )
inlinevirtual

Reimplemented from System.Xml.XmlWriter.

Definition at line 687 of file XmlCharCheckingWriter.cs.

688 {
689 if (buffer == null)
690 {
691 throw new ArgumentNullException("buffer");
692 }
693 if (index < 0)
694 {
695 throw new ArgumentOutOfRangeException("index");
696 }
697 if (count < 0)
698 {
699 throw new ArgumentOutOfRangeException("count");
700 }
701 if (count > buffer.Length - index)
702 {
703 throw new ArgumentOutOfRangeException("count");
704 }
705 if (_checkValues)
706 {
708 }
709 if (_replaceNewLines && WriteState != WriteState.Attribute)
710 {
712 if (text != null)
713 {
714 return WriteStringAsync(text);
715 }
716 }
718 }
override Task WriteStringAsync(string text)
virtual Task WriteCharsAsync(char[] buffer, int index, int count)
Definition XmlWriter.cs:678

References System.Xml.XmlCharCheckingWriter._checkValues, System.Xml.XmlCharCheckingWriter._replaceNewLines, System.buffer, System.Xml.XmlCharCheckingWriter.CheckCharacters(), System.count, System.index, System.Xml.XmlCharCheckingWriter.ReplaceNewLines(), System.text, System.Xml.XmlWriter.WriteCharsAsync(), System.Xml.XmlWrappingWriter.writer, and System.Xml.XmlCharCheckingWriter.WriteStringAsync().