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

◆ TryCopyTo()

bool System.String.TryCopyTo ( Span< char > destination)
inline

Definition at line 1277 of file String.cs.

1278 {
1279 bool result = false;
1280 if ((uint)Length <= (uint)destination.Length)
1281 {
1282 Buffer.Memmove(ref destination._pointer.Value, ref _firstChar, (uint)Length);
1283 result = true;
1284 }
1285 return result;
1286 }
char _firstChar
Definition String.cs:35

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