18 references to ComponentSize
System.Private.CoreLib (18)
src\libraries\System.Private.CoreLib\src\System\Array.cs (9)
379nuint byteCount = (uint)length * (nuint)pMT->ComponentSize; 410nuint elementSize = (nuint)pMT->ComponentSize; 461nuint elementSize = (nuint)pMT->ComponentSize; 537nuint destSize = pDestArrayMT->ComponentSize; 582nuint srcSize = pSrcArrayMT->ComponentSize; 640nuint srcElSize = RuntimeHelpers.GetMethodTable(sourceArray)->ComponentSize; 641nuint destElSize = RuntimeHelpers.GetMethodTable(destinationArray)->ComponentSize; 665nuint totalByteLength = pMT->ComponentSize * array.NativeLength; 705nuint elementSize = pMT->ComponentSize;
src\System\Array.CoreCLR.cs (5)
165ref byte offsetDataRef = ref Unsafe.Add(ref arrayDataRef, flattenedIndex * pMethodTable->ComponentSize); 207ref byte offsetDataRef = ref Unsafe.Add(ref arrayDataRef, flattenedIndex * pMethodTable->ComponentSize); 236ref byte offsetDataRef = ref Unsafe.Add(ref arrayDataRef, flattenedIndex * pMethodTable->ComponentSize); 276SpanHelpers.Memmove(ref offsetDataRef, ref value.GetRawData(), pMethodTable->ComponentSize); 339nuint elementSize = pArrayMT->ComponentSize;
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (4)
42nuint totalSize = pMT->ComponentSize * array.NativeLength; 61switch (pMT->ComponentSize) 401rawSize += (uint)Unsafe.As<RawArrayData>(obj).Length * (nuint)pMT->ComponentSize; 413return GetMethodTable(array)->ComponentSize;