22 references to NativeLength
System.Private.CoreLib (22)
src\libraries\System.Private.CoreLib\src\System\Array.cs (11)
376(uint)length <= sourceArray.NativeLength && 377(uint)length <= destinationArray.NativeLength) 407(uint)(sourceIndex + length) <= sourceArray.NativeLength && 408(uint)(destinationIndex + length) <= destinationArray.NativeLength) 445if ((sourceIndex < 0) || ((uint)(sourceIndex + length) > sourceArray.NativeLength)) 451if ((destinationIndex < 0) || ((uint)(destinationIndex + length) > destinationArray.NativeLength)) 665nuint totalByteLength = pMT->ComponentSize * array.NativeLength; 702if (index < lowerBound || offset < 0 || length < 0 || (uint)(offset + length) > array.NativeLength) 729if ((uint)rawIndex >= NativeLength) 751Debug.Assert((nuint)flattenedIndex < NativeLength); 757if ((uint)index >= NativeLength)
src\libraries\System.Private.CoreLib\src\System\Array.Enumerators.cs (2)
31nuint length = _array.NativeLength; 48if ((nuint)index >= array.NativeLength)
src\libraries\System.Private.CoreLib\src\System\Buffer.cs (3)
22nuint uSrcLen = src.NativeLength; 33uDstLen = dst.NativeLength; 64nuint byteLength = array.NativeLength * (nuint)array.GetElementSize();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ArrayWithOffset.cs (1)
28nuint nativeTotalSize = arrayObj.NativeLength * (nuint)arrayObj.GetElementSize();
src\System\Array.CoreCLR.cs (4)
155Debug.Assert((nuint)flattenedIndex < NativeLength); 196Debug.Assert((nuint)flattenedIndex < NativeLength); 293public long LongLength => (long)NativeLength; 341for (nuint i = 0; i < NativeLength; i++)
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
42nuint totalSize = pMT->ComponentSize * array.NativeLength;