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

◆ Slice() [2/2]

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

Definition at line 144 of file ReadOnlyMemory.cs.

145 {
146 if ((ulong)((long)(uint)start + (long)(uint)length) > (ulong)(uint)_length)
147 {
148 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.start);
149 }
150 return new ReadOnlyMemory<T>(_object, _index + start, length);
151 }
readonly object _object

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