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

◆ CopyTo() [2/2]

void System.String.CopyTo ( Span< char > destination)
inline

Definition at line 1264 of file String.cs.

1265 {
1266 if ((uint)Length <= (uint)destination.Length)
1267 {
1268 Buffer.Memmove(ref destination._pointer.Value, ref _firstChar, (uint)Length);
1269 }
1270 else
1271 {
1272 ThrowHelper.ThrowArgumentException_DestinationTooShort();
1273 }
1274 }
char _firstChar
Definition String.cs:35

References System.String._firstChar, System.destination, System.String.Length, System.Buffer.Memmove(), and System.ThrowHelper.ThrowArgumentException_DestinationTooShort().