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

◆ Ctor() [6/9]

string System.String.Ctor ( ReadOnlySpan< char > value)
inlineprivate

Definition at line 1159 of file String.cs.

1160 {
1161 if (value.Length == 0)
1162 {
1163 return Empty;
1164 }
1165 string text = FastAllocateString(value.Length);
1166 Buffer.Memmove(ref text._firstChar, ref MemoryMarshal.GetReference(value), (uint)value.Length);
1167 return text;
1168 }
static readonly string Empty
Definition String.cs:29
static string FastAllocateString(int length)

References System.String.Empty, System.String.FastAllocateString(), System.Buffer.Memmove(), System.text, and System.value.