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

◆ Slice() [2/2]

Memory< T > System.Memory< T >.Slice ( int start,
int length )
inline

Definition at line 204 of file Memory.cs.

205 {
206 if ((ulong)((long)(uint)start + (long)(uint)length) > (ulong)(uint)_length)
207 {
208 ThrowHelper.ThrowArgumentOutOfRangeException();
209 }
210 return new Memory<T>(_object, _index + start, length);
211 }
readonly int _length
Definition Memory.cs:19
readonly object _object
Definition Memory.cs:15
readonly int _index
Definition Memory.cs:17

References System.Memory< T >._index, System.Memory< T >._length, System.Memory< T >._object, System.length, System.start, and System.ThrowHelper.ThrowArgumentOutOfRangeException().