19 references to NativeLength
System.Private.CoreLib (19)
src\libraries\System.Private.CoreLib\src\System\Array.cs (4)
368(uint)length <= sourceArray.NativeLength && 369(uint)length <= destinationArray.NativeLength) 398(uint)(sourceIndex + length) <= sourceArray.NativeLength && 399(uint)(destinationIndex + length) <= destinationArray.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)
21nuint uSrcLen = src.NativeLength; 32uDstLen = dst.NativeLength; 63nuint 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 (8)
60if ((uint)(sourceIndex + length) > sourceArray.NativeLength) 62if ((uint)(destinationIndex + length) > destinationArray.NativeLength) 357nuint totalByteLength = pMT->ComponentSize * array.NativeLength; 394if (index < lowerBound || offset < 0 || length < 0 || (uint)(offset + length) > array.NativeLength) 468Debug.Assert((nuint)flattenedIndex < NativeLength); 509Debug.Assert((nuint)flattenedIndex < NativeLength); 606public long LongLength => (long)NativeLength; 692for (nuint i = 0; i < NativeLength; i++)
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
42nuint totalSize = pMT->ComponentSize * array.NativeLength;