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

◆ Write() [3/19]

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

Reimplemented from System.IO.TextWriter.

Definition at line 334 of file StreamWriter.cs.

335 {
336 if (buffer == null)
337 {
338 throw new ArgumentNullException("buffer", SR.ArgumentNull_Buffer);
339 }
340 if (index < 0)
341 {
342 throw new ArgumentOutOfRangeException("index", SR.ArgumentOutOfRange_NeedNonNegNum);
343 }
344 if (count < 0)
345 {
346 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_NeedNonNegNum);
347 }
348 if (buffer.Length - index < count)
349 {
350 throw new ArgumentException(SR.Argument_InvalidOffLen);
351 }
352 WriteSpan(buffer.AsSpan(index, count), appendNewLine: false);
353 }
unsafe void WriteSpan(ReadOnlySpan< char > buffer, bool appendNewLine)

References System.SR.Argument_InvalidOffLen, System.SR.ArgumentNull_Buffer, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.buffer, System.count, System.index, and System.IO.StreamWriter.WriteSpan().