5 references to GetElementSize
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Buffer.cs (3)
26uSrcLen *= (nuint)src.GetElementSize(); 37uDstLen *= (nuint)dst.GetElementSize(); 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\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
170return (IntPtr)((byte*)pRawData + (uint)index * (nuint)arr.GetElementSize());