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

◆ Write() [11/20]

virtual void System.IO.TextWriter.Write ( ReadOnlySpan< char > buffer)
inlinevirtualinherited

Reimplemented in System.IO.StreamWriter, System.IO.StringWriter, and System.IO.TextWriter.SyncTextWriter.

Definition at line 560 of file TextWriter.cs.

561 {
562 char[] array = ArrayPool<char>.Shared.Rent(buffer.Length);
563 try
564 {
565 buffer.CopyTo(new Span<char>(array));
566 Write(array, 0, buffer.Length);
567 }
568 finally
569 {
571 }
572 }
static ArrayPool< T > Shared
Definition ArrayPool.cs:7

References System.array, System.buffer, System.Buffers.ArrayPool< T >.Shared, and System.IO.Write.