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

◆ Write() [3/19]

override void System.IO.StringWriter.Write ( char[] buffer,
int index,
int count )
inlinevirtual

Reimplemented from System.IO.TextWriter.

Definition at line 79 of file StringWriter.cs.

80 {
81 if (buffer == null)
82 {
83 throw new ArgumentNullException("buffer", SR.ArgumentNull_Buffer);
84 }
85 if (index < 0)
86 {
87 throw new ArgumentOutOfRangeException("index", SR.ArgumentOutOfRange_NeedNonNegNum);
88 }
89 if (count < 0)
90 {
91 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_NeedNonNegNum);
92 }
93 if (buffer.Length - index < count)
94 {
95 throw new ArgumentException(SR.Argument_InvalidOffLen);
96 }
97 if (!_isOpen)
98 {
99 throw new ObjectDisposedException(null, SR.ObjectDisposed_WriterClosed);
100 }
102 }
readonly StringBuilder _sb
StringBuilder Append(char value, int repeatCount)

References System.IO.StringWriter._isOpen, System.IO.StringWriter._sb, System.Text.StringBuilder.Append(), System.SR.Argument_InvalidOffLen, System.SR.ArgumentNull_Buffer, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.buffer, System.count, System.index, and System.SR.ObjectDisposed_WriterClosed.