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

◆ Write() [3/19]

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

Reimplemented in System.CodeDom.Compiler.IndentedTextWriter, System.IO.StreamWriter, System.IO.StringWriter, System.IO.TextWriter.NullTextWriter, and System.IO.TextWriter.SyncTextWriter.

Definition at line 536 of file TextWriter.cs.

537 {
538 if (buffer == null)
539 {
540 throw new ArgumentNullException("buffer", SR.ArgumentNull_Buffer);
541 }
542 if (index < 0)
543 {
544 throw new ArgumentOutOfRangeException("index", SR.ArgumentOutOfRange_NeedNonNegNum);
545 }
546 if (count < 0)
547 {
548 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_NeedNonNegNum);
549 }
550 if (buffer.Length - index < count)
551 {
552 throw new ArgumentException(SR.Argument_InvalidOffLen);
553 }
554 for (int i = 0; i < count; i++)
555 {
556 Write(buffer[index + i]);
557 }
558 }

References System.SR.Argument_InvalidOffLen, System.SR.ArgumentNull_Buffer, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.buffer, System.count, System.index, and System.IO.Write.