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

◆ TryCopyTo()

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

Definition at line 236 of file Span.cs.

237 {
238 bool result = false;
239 if ((uint)_length <= (uint)destination.Length)
240 {
241 Buffer.Memmove<T>(ref destination._pointer.Value, ref _pointer.Value, (uint)_length);
242 result = true;
243 }
244 return result;
245 }
readonly ByReference< T > _pointer
Definition Span.cs:50
readonly int _length
Definition Span.cs:52

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

Referenced by System.Memory< T >.TryCopyTo(), and System.ReadOnlyMemory< T >.TryCopyTo().