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

◆ TryCopyTo()

bool System.ReadOnlySpan< T >.TryCopyTo ( Span< T > destination)
inline

Definition at line 202 of file ReadOnlySpan.cs.

203 {
204 bool result = false;
205 if ((uint)_length <= (uint)destination.Length)
206 {
207 Buffer.Memmove<T>(ref destination._pointer.Value, ref _pointer.Value, (uint)_length);
208 result = true;
209 }
210 return result;
211 }
readonly int _length
readonly ByReference< T > _pointer

References System.ReadOnlySpan< T >._length, System.ReadOnlySpan< T >._pointer, System.destination, and System.Buffer.Memmove().

Referenced by System.UriHelper.UnescapeString().