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

◆ WritePartialString()

static void System.IO.TextWriterExtensions.WritePartialString ( this TextWriter writer,
string value,
int offset,
int count )
inlinestatic

Definition at line 5 of file TextWriterExtensions.cs.

6 {
7 if (offset == 0 && count == value.Length)
8 {
9 writer.Write(value);
10 return;
11 }
12 ReadOnlySpan<char> buffer = value.AsSpan(offset, count);
13 writer.Write(buffer);
14 }

References System.buffer, System.count, System.offset, System.value, and System.writer.