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