26 references to GetArrayDataReference
System.Numerics.Tensors (4)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (2)
200
_reference = ref Unsafe.Add(ref Unsafe.As<byte, T>(ref MemoryMarshal.
GetArrayDataReference
(array)), (nint)(uint)startOffset /* force zero-extension */);
248
_reference = ref Unsafe.Add(ref Unsafe.As<byte, T>(ref MemoryMarshal.
GetArrayDataReference
(array)), (nint)(uint)startOffset /* force zero-extension */);
System\Numerics\Tensors\netcore\TensorSpan.cs (2)
202
_reference = ref Unsafe.Add(ref Unsafe.As<byte, T>(ref MemoryMarshal.
GetArrayDataReference
(array)), (nint)(uint)startOffset /* force zero-extension */);
249
_reference = ref Unsafe.Add(ref Unsafe.As<byte, T>(ref MemoryMarshal.
GetArrayDataReference
(array)), (nint)(uint)startOffset /* force zero-extension */);
System.Private.CoreLib (22)
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
2673
new Span<T>(ref Unsafe.As<byte, T>(ref MemoryMarshal.
GetArrayDataReference
(array)), array.Length).Slice(adjustedIndex, length);
src\libraries\System.Private.CoreLib\src\System\Buffer.cs (4)
52
Memmove(ref Unsafe.AddByteOffset(ref MemoryMarshal.
GetArrayDataReference
(dst), uDstOffset), ref Unsafe.AddByteOffset(ref MemoryMarshal.
GetArrayDataReference
(src), uSrcOffset), uCount);
84
return Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(array), index);
95
Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(array), index) = value;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
169
void* pRawData = Unsafe.AsPointer(ref MemoryMarshal.
GetArrayDataReference
(arr));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\PointerArrayMarshaller.cs (1)
202
return ref MemoryMarshal.
GetArrayDataReference
(array);
src\System\Array.CoreCLR.cs (14)
74
ref byte src = ref Unsafe.AddByteOffset(ref MemoryMarshal.
GetArrayDataReference
(sourceArray), (uint)sourceIndex * elementSize);
75
ref byte dst = ref Unsafe.AddByteOffset(ref MemoryMarshal.
GetArrayDataReference
(destinationArray), (uint)destinationIndex * elementSize);
242
ref object? srcData = ref Unsafe.Add(ref Unsafe.As<byte, object?>(ref MemoryMarshal.
GetArrayDataReference
(sourceArray)), sourceIndex);
243
ref byte data = ref Unsafe.AddByteOffset(ref MemoryMarshal.
GetArrayDataReference
(destinationArray), (nuint)destinationIndex * destSize);
285
ref byte data = ref Unsafe.AddByteOffset(ref MemoryMarshal.
GetArrayDataReference
(sourceArray), (nuint)sourceIndex * srcSize);
286
ref object? destData = ref Unsafe.Add(ref Unsafe.As<byte, object?>(ref MemoryMarshal.
GetArrayDataReference
(destinationArray)), destinationIndex);
300
ref object? srcData = ref Unsafe.Add(ref Unsafe.As<byte, object?>(ref MemoryMarshal.
GetArrayDataReference
(sourceArray)), sourceIndex);
301
ref object? destData = ref Unsafe.Add(ref Unsafe.As<byte, object?>(ref MemoryMarshal.
GetArrayDataReference
(destinationArray)), destinationIndex);
325
ref byte srcData = ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(sourceArray), (nuint)sourceIndex * srcElSize);
326
ref byte data = ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(destinationArray), (nuint)destinationIndex * destElSize);
358
ref byte pStart = ref MemoryMarshal.
GetArrayDataReference
(array);
470
ref byte arrayDataRef = ref MemoryMarshal.
GetArrayDataReference
(this);
511
ref byte arrayDataRef = ref MemoryMarshal.
GetArrayDataReference
(this);
689
ref byte arrayRef = ref MemoryMarshal.
GetArrayDataReference
(this);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
51
ref byte dst = ref MemoryMarshal.
GetArrayDataReference
(array);