src\libraries\System.Private.CoreLib\src\System\Reflection\FieldAccessor.cs (16)
131return Volatile.Read(ref Unsafe.As<byte, object>(ref Unsafe.AddByteOffset(ref obj.GetRawData(), _addressOrOffset)));
142ref Unsafe.AddByteOffset(ref obj.GetRawData(), _addressOrOffset));
148(void*)Unsafe.As<byte, IntPtr>(ref Unsafe.AddByteOffset(ref obj.GetRawData(), _addressOrOffset)),
223ref Unsafe.As<byte, object?>(ref Unsafe.AddByteOffset(ref obj.GetRawData(), _addressOrOffset)),
231ref Unsafe.AddByteOffset(ref obj.GetRawData(), _addressOrOffset),
232value!.GetRawData());
239ref Unsafe.As<byte, short>(ref Unsafe.AddByteOffset(ref obj.GetRawData(), _addressOrOffset)),
240Unsafe.As<byte, short>(ref value!.GetRawData()));
247ref Unsafe.As<byte, int>(ref Unsafe.AddByteOffset(ref obj.GetRawData(), _addressOrOffset)),
248Unsafe.As<byte, int>(ref value!.GetRawData()));
255ref Unsafe.As<byte, long>(ref Unsafe.AddByteOffset(ref obj.GetRawData(), _addressOrOffset)),
256Unsafe.As<byte, long>(ref value!.GetRawData()));
268value!.GetRawData());
275Unsafe.As<byte, short>(ref value!.GetRawData()));
282Unsafe.As<byte, int>(ref value!.GetRawData()));
289Unsafe.As<byte, long>(ref value!.GetRawData()));
src\System\Array.CoreCLR.cs (6)
264Buffer.BulkMoveWithWriteBarrier(ref dest, ref obj.GetRawData(), destSize);
268SpanHelpers.Memmove(ref dest, ref obj.GetRawData(), destSize);
561Buffer.BulkMoveWithWriteBarrier(ref offsetDataRef, ref value.GetRawData(), elementSize);
566SpanHelpers.Memmove(ref offsetDataRef, ref value.GetRawData(), elementSize);
589SpanHelpers.Memmove(ref offsetDataRef, ref value.GetRawData(), pMethodTable->ComponentSize);
593InvokeUtils.PrimitiveWiden(ref value.GetRawData(), ref offsetDataRef, srcType, targetType);
src\System\Runtime\InteropServices\Marshal.CoreCLR.cs (5)
263structMarshalStub(ref structure.GetRawData(), (byte*)ptr, MarshalOperation.Cleanup, ref Unsafe.NullRef<CleanupWorkListElement?>());
266structMarshalStub(ref structure.GetRawData(), (byte*)ptr, MarshalOperation.Marshal, ref Unsafe.NullRef<CleanupWorkListElement?>());
270SpanHelpers.Memmove(ref *(byte*)ptr, ref structure.GetRawData(), size);
291structMarshalStub(ref structure.GetRawData(), (byte*)ptr, MarshalOperation.Unmarshal, ref Unsafe.NullRef<CleanupWorkListElement?>());
295SpanHelpers.Memmove(ref structure.GetRawData(), ref *(byte*)ptr, size);
src\System\StubHelpers.cs (5)
1521structMarshalStub(ref obj.GetRawData(), pNative, MarshalOperation.Marshal, ref pCleanupWorkList);
1525SpanHelpers.Memmove(ref *pNative, ref obj.GetRawData(), size);
1540structMarshalStub(ref obj.GetRawData(), pNative, MarshalOperation.Unmarshal, ref Unsafe.NullRef<CleanupWorkListElement?>());
1544SpanHelpers.Memmove(ref obj.GetRawData(), ref *pNative, size);
1559structMarshalStub(ref obj.GetRawData(), pNative, MarshalOperation.Cleanup, ref Unsafe.NullRef<CleanupWorkListElement?>());