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

◆ CopyTo() [2/4]

void System.ArraySegment< T >.CopyTo ( ArraySegment< T > destination)
inline

Definition at line 188 of file ArraySegment.cs.

189 {
191 destination.ThrowInvalidOperationIfDefault();
192 if (_count > destination._count)
193 {
194 ThrowHelper.ThrowArgumentException_DestinationTooShort();
195 }
197 }
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
Definition Array.cs:624
readonly T[] _array
void ThrowInvalidOperationIfDefault()
readonly int _count
readonly int _offset

References System.ArraySegment< T >._array, System.ArraySegment< T >._count, System.ArraySegment< T >._offset, System.Array.Copy(), System.destination, System.ThrowHelper.ThrowArgumentException_DestinationTooShort(), and System.ArraySegment< T >.ThrowInvalidOperationIfDefault().