18 references to ComponentSize
System.Private.CoreLib (18)
src\libraries\System.Private.CoreLib\src\System\Array.cs (2)
371nuint byteCount = (uint)length * (nuint)pMT->ComponentSize; 401nuint elementSize = (nuint)pMT->ComponentSize;
src\System\Array.CoreCLR.cs (12)
86nuint elementSize = (nuint)pMT->ComponentSize; 255nuint destSize = pDestArrayMT->ComponentSize; 298nuint srcSize = pSrcArrayMT->ComponentSize; 336nuint srcElSize = RuntimeHelpers.GetMethodTable(sourceArray)->ComponentSize; 337nuint destElSize = RuntimeHelpers.GetMethodTable(destinationArray)->ComponentSize; 371nuint totalByteLength = pMT->ComponentSize * array.NativeLength; 411nuint elementSize = pMT->ComponentSize; 492ref byte offsetDataRef = ref Unsafe.Add(ref arrayDataRef, flattenedIndex * pMethodTable->ComponentSize); 534ref byte offsetDataRef = ref Unsafe.Add(ref arrayDataRef, flattenedIndex * pMethodTable->ComponentSize); 563ref byte offsetDataRef = ref Unsafe.Add(ref arrayDataRef, flattenedIndex * pMethodTable->ComponentSize); 603SpanHelpers.Memmove(ref offsetDataRef, ref value.GetRawData(), pMethodTable->ComponentSize); 704nuint elementSize = pArrayMT->ComponentSize;
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (4)
42nuint totalSize = pMT->ComponentSize * array.NativeLength; 61switch (pMT->ComponentSize) 400rawSize += (uint)Unsafe.As<RawArrayData>(obj).Length * (nuint)pMT->ComponentSize; 412return GetMethodTable(array)->ComponentSize;