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

◆ Copy()

static string System.String.Copy ( string str)
inlinestatic

Definition at line 1226 of file String.cs.

1227 {
1228 if ((object)str == null)
1229 {
1230 throw new ArgumentNullException("str");
1231 }
1232 string text = FastAllocateString(str.Length);
1233 nuint elementCount = (uint)text.Length;
1234 Buffer.Memmove(ref text._firstChar, ref str._firstChar, elementCount);
1235 return text;
1236 }
static string FastAllocateString(int length)

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