70 references to GetRawData
System.Private.CoreLib (70)
src\libraries\System.Private.CoreLib\src\System\Array.cs (3)
952=> UnsafeArrayAsSpan<T>(array, adjustedIndex, length).BinarySearch(Unsafe.As<byte, T>(ref value.GetRawData())); 1448=> UnsafeArrayAsSpan<T>(array, adjustedIndex, length).IndexOf(Unsafe.As<byte, T>(ref value.GetRawData())); 1675=> UnsafeArrayAsSpan<T>(array, adjustedIndex, length).LastIndexOf(Unsafe.As<byte, T>(ref value.GetRawData()));
src\libraries\System.Private.CoreLib\src\System\Enum.cs (12)
406ref byte pThisValue = ref this.GetRawData(); 407ref byte pFlagsValue = ref flag.GetRawData(); 1166ref byte data = ref this.GetRawData(); 1201ref byte pThisValue = ref this.GetRawData(); 1202ref byte pOtherValue = ref obj.GetRawData(); 1256ref byte data = ref this.GetRawData(); 1291ref byte pThisValue = ref this.GetRawData(); 1292ref byte pTargetValue = ref target.GetRawData(); 1357ref byte rawData = ref this.GetRawData(); 1405ref byte rawData = ref this.GetRawData(); 1655ref byte rawData = ref value.GetRawData(); 1690ref byte rawData = ref this.GetRawData();
src\libraries\System.Private.CoreLib\src\System\Reflection\ConstructorInvoker.cs (1)
298ByReference.Create(ref copyOfArgs[i]!.GetRawData()) :
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\libraries\System.Private.CoreLib\src\System\Reflection\MethodBaseInvoker.cs (1)
168ByReference.Create(ref copyOfArgs[i]!.GetRawData()) :
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInvoker.cs (1)
351ByReference.Create(ref copyOfArgs[i]!.GetRawData()) :
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\CastCache.cs (1)
109return ref Unsafe.As<byte, int>(ref Unsafe.AddByteOffset(ref table.GetRawData(), (nint)sizeof(nint)));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
142return (IntPtr)Unsafe.AsPointer(ref target.GetRawData());
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
914return RuntimeHelpers.Box(ref RuntimeHelpers.GetRawData(value), type.TypeHandle)!;
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\ComAwareWeakReference.CoreCLR.cs (1)
30fixed (byte* pRawData = &target.GetRawData())
src\System\Object.CoreCLR.cs (2)
36ref byte src = ref this.GetRawData(); 37ref byte dst = ref clone.GetRawData();
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
268fixed (byte* pData = &value.GetRawData())
src\System\Runtime\CompilerServices\CastHelpers.cs (6)
397return ref obj.GetRawData(); 578Buffer.BulkMoveWithWriteBarrier(ref destPtr, ref RuntimeHelpers.GetRawData(obj), typeMT->GetNullableNumInstanceFieldBytes()); 606ref byte src = ref RuntimeHelpers.GetRawData(obj); 620ref byte nullableData = ref src.GetRawData(); 632ref byte dstData = ref RuntimeHelpers.GetRawData(dst); 659return ref RuntimeHelpers.GetRawData(obj);
src\System\Runtime\CompilerServices\StaticsHelpers.cs (1)
91return ref Unsafe.Subtract(ref RuntimeHelpers.GetRawData(obj), sizeof(MethodTable*));
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\RuntimeHandles.cs (1)
1183ref obj.GetRawData(),
src\System\RuntimeType.BoxCache.cs (2)
93Buffer.BulkMoveWithWriteBarrier(ref result.GetRawData(), ref source, _valueTypeSize); 97SpanHelpers.Memmove(ref result.GetRawData(), ref source, _valueTypeSize);
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?>());
src\System\ValueType.cs (3)
44ref RuntimeHelpers.GetRawData(this), 45ref RuntimeHelpers.GetRawData(obj), 107ref byte rawData = ref RuntimeHelpers.GetRawData(this);