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; 415nuint elementSize = (nuint)pMT->ComponentSize; 466nuint elementSize = (nuint)pMT->ComponentSize; 542nuint destSize = pDestArrayMT->ComponentSize; 587nuint srcSize = pSrcArrayMT->ComponentSize; 645nuint srcElSize = RuntimeHelpers.GetMethodTable(sourceArray)->ComponentSize; 646nuint destElSize = RuntimeHelpers.GetMethodTable(destinationArray)->ComponentSize; 670nuint totalByteLength = pMT->ComponentSize * array.NativeLength; 710nuint 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)
43nuint totalSize = pMT->ComponentSize * array.NativeLength; 62switch (pMT->ComponentSize) 402rawSize += (uint)Unsafe.As<RawArrayData>(obj).Length * (nuint)pMT->ComponentSize; 414return GetMethodTable(array)->ComponentSize;