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

◆ WriteRaw() [1/2]

override void System.Xml.XmlBaseWriter.WriteRaw ( char[] chars,
int offset,
int count )
inlineinherited

Definition at line 1880 of file XmlBaseWriter.cs.

1881 {
1882 if (IsClosed)
1883 {
1884 ThrowClosed();
1885 }
1886 if (chars == null)
1887 {
1888 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("chars"));
1889 }
1890 if (offset < 0)
1891 {
1892 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", System.SR.ValueMustBeNonNegative));
1893 }
1894 if (count < 0)
1895 {
1896 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", System.SR.ValueMustBeNonNegative));
1897 }
1898 if (count > chars.Length - offset)
1899 {
1900 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", System.SR.Format(System.SR.SizeExceedsRemainingBufferSpace, chars.Length - offset)));
1901 }
1902 if (count > 0)
1903 {
1904 FlushBase64();
1905 if (_attributeValue != null)
1906 {
1907 WriteAttributeText(new string(chars, offset, count));
1908 }
1909 if (!_isXmlnsAttribute)
1910 {
1913 EndContent();
1914 }
1915 }
1916 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string ValueMustBeNonNegative
Definition SR.cs:296
static string SizeExceedsRemainingBufferSpace
Definition SR.cs:324
Definition SR.cs:7
void WriteAttributeText(string value)
void WriteText(string value)

References System.Xml.XmlBaseWriter._attributeValue, System.Xml.XmlBaseWriter._isXmlnsAttribute, System.Xml.XmlBaseWriter._writer, System.chars, System.count, System.Xml.XmlBaseWriter.EndContent(), System.Xml.XmlBaseWriter.FlushBase64(), System.SR.Format(), System.Xml.XmlBaseWriter.IsClosed, System.offset, System.SR.SizeExceedsRemainingBufferSpace, System.Xml.XmlBaseWriter.StartContent(), System.Xml.XmlBaseWriter.ThrowClosed(), System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), System.SR.ValueMustBeNonNegative, System.Xml.XmlBaseWriter.WriteAttributeText(), and System.Xml.XmlNodeWriter.WriteText().