Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TextWriterExtensions.cs
Go to the documentation of this file.
1
namespace
System.IO
;
2
3
internal
static
class
TextWriterExtensions
4
{
5
public
static
void
WritePartialString
(
this
TextWriter
writer
,
string
value
,
int
offset
,
int
count
)
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
}
15
}
System.IO.TextWriterExtensions.WritePartialString
static void WritePartialString(this TextWriter writer, string value, int offset, int count)
Definition
TextWriterExtensions.cs:5
System.IO.TextWriterExtensions
Definition
TextWriterExtensions.cs:4
System.IO.TextWriter
Definition
TextWriter.cs:13
System.IO
Definition
ConsoleStream.cs:3
System.ExceptionArgument.value
@ value
System.ExceptionArgument.offset
@ offset
System.ExceptionArgument.buffer
@ buffer
System.ExceptionArgument.writer
@ writer
System.ExceptionArgument.count
@ count
System.ReadOnlySpan
Definition
ReadOnlySpan.cs:14
source
System.Text.Encodings.Web
System.IO
TextWriterExtensions.cs
Generated by
1.10.0