103 references to GetArrayDataReference
Microsoft.AspNetCore.Http (1)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
548
ref var r = ref MemoryMarshal.
GetArrayDataReference
(_arrayStorage);
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
548
ref var r = ref MemoryMarshal.
GetArrayDataReference
(_arrayStorage);
System.Collections (8)
System\Collections\BitArray.cs (8)
136
ref byte value = ref Unsafe.As<bool, byte>(ref MemoryMarshal.
GetArrayDataReference
<bool>(values));
347
ref int left = ref MemoryMarshal.
GetArrayDataReference
<int>(thisArray);
348
ref int right = ref MemoryMarshal.
GetArrayDataReference
<int>(valueArray);
420
ref int left = ref MemoryMarshal.
GetArrayDataReference
<int>(thisArray);
421
ref int right = ref MemoryMarshal.
GetArrayDataReference
<int>(valueArray);
493
ref int left = ref MemoryMarshal.
GetArrayDataReference
<int>(thisArray);
494
ref int right = ref MemoryMarshal.
GetArrayDataReference
<int>(valueArray);
560
ref int value = ref MemoryMarshal.
GetArrayDataReference
<int>(thisArray);
System.Net.Http (1)
System\Net\Http\Headers\HttpHeaders.cs (1)
1465
ref HeaderEntry firstEntry = ref MemoryMarshal.
GetArrayDataReference
(entries);
System.Net.Primitives (2)
System\Net\IPAddress.cs (2)
212
ushorts.StoreUnsafe(ref MemoryMarshal.
GetArrayDataReference
(numbers));
356
Vector128<ushort> ushorts = Vector128.LoadUnsafe(ref MemoryMarshal.
GetArrayDataReference
(numbers));
System.Numerics.Tensors (8)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (1)
106
_reference = ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(array), (nint)(uint)start /* force zero-extension */);
System\Numerics\Tensors\netcore\Tensor.cs (4)
379
public static implicit operator TensorSpan<T>(Tensor<T> value) => new TensorSpan<T>(ref MemoryMarshal.
GetArrayDataReference
(value._values), value._lengths, value._strides, value._flattenedLength);
384
public static implicit operator ReadOnlyTensorSpan<T>(Tensor<T> value) => new ReadOnlyTensorSpan<T>(ref MemoryMarshal.
GetArrayDataReference
(value._values), value._lengths, value._strides, value.FlattenedLength);
390
public TensorSpan<T> AsTensorSpan() => new TensorSpan<T>(ref MemoryMarshal.
GetArrayDataReference
(_values), _lengths, _strides, _flattenedLength);
417
public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref MemoryMarshal.
GetArrayDataReference
(_values), _lengths, _strides, _flattenedLength);
System\Numerics\Tensors\netcore\TensorShape.cs (2)
55
: MemoryMarshal.CreateReadOnlySpan(ref MemoryMarshal.
GetArrayDataReference
(_metadata), _rank);
60
: MemoryMarshal.CreateReadOnlySpan(ref MemoryMarshal.
GetArrayDataReference
(_metadata), _rank * 2).Slice(_rank);
System\Numerics\Tensors\netcore\TensorSpan.cs (1)
108
_reference = ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(array), (nint)(uint)start /* force zero-extension */);
System.Private.CoreLib (79)
src\libraries\System.Private.CoreLib\src\System\Array.cs (18)
63
ref MemoryMarshal.
GetArrayDataReference
(newArray),
64
ref MemoryMarshal.
GetArrayDataReference
(larray),
1125
ref T first = ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(array), (nint)(uint)startIndex);
1515
ref Unsafe.Add(ref Unsafe.As<T, byte>(ref MemoryMarshal.
GetArrayDataReference
(array)), startIndex),
1523
ref Unsafe.Add(ref Unsafe.As<T, short>(ref MemoryMarshal.
GetArrayDataReference
(array)), startIndex),
1531
ref Unsafe.Add(ref Unsafe.As<T, int>(ref MemoryMarshal.
GetArrayDataReference
(array)), startIndex),
1539
ref Unsafe.Add(ref Unsafe.As<T, long>(ref MemoryMarshal.
GetArrayDataReference
(array)), startIndex),
1760
ref Unsafe.Add(ref Unsafe.As<T, byte>(ref MemoryMarshal.
GetArrayDataReference
(array)), endIndex),
1770
ref Unsafe.Add(ref Unsafe.As<T, short>(ref MemoryMarshal.
GetArrayDataReference
(array)), endIndex),
1780
ref Unsafe.Add(ref Unsafe.As<T, int>(ref MemoryMarshal.
GetArrayDataReference
(array)), endIndex),
1790
ref Unsafe.Add(ref Unsafe.As<T, long>(ref MemoryMarshal.
GetArrayDataReference
(array)), endIndex),
1893
SpanHelpers.Reverse(ref MemoryMarshal.
GetArrayDataReference
(array), (nuint)array.Length);
1910
SpanHelpers.Reverse(ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(array), index), (nuint)length);
2111
var span = new Span<T>(ref MemoryMarshal.
GetArrayDataReference
(array), array.Length);
2160
var span = new Span<T>(ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(array), index), length);
2184
var spanKeys = new Span<TKey>(ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(keys), index), length);
2185
var spanItems = new Span<TValue>(ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(items), index), length);
2202
var span = new Span<T>(ref MemoryMarshal.
GetArrayDataReference
(array), array.Length);
src\libraries\System.Private.CoreLib\src\System\Buffers\SharedArrayPool.cs (1)
408
Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(arrays), count) = array; // arrays[count] = array, but avoiding stelemref
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (3)
38
return new Span<T>(ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(array), (nint)(uint)start /* force zero-extension */), array.Length - start);
62
return new Span<T>(ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(array), (nint)(uint)actualIndex /* force zero-extension */), array.Length - actualIndex);
86
return new Span<T>(ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(array), (nint)(uint)start /* force zero-extension */), length);
src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (2)
1582
ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(typeof(TChar) == typeof(char) ? TwoDigitsCharsAsBytes : TwoDigitsBytes), (uint)sizeof(TChar) * 2 * value),
1598
ref byte charsArray = ref MemoryMarshal.
GetArrayDataReference
(typeof(TChar) == typeof(char) ? TwoDigitsCharsAsBytes : TwoDigitsBytes);
src\libraries\System.Private.CoreLib\src\System\Numerics\BitOperations.cs (3)
875
ref uint lookupTable = ref MemoryMarshal.
GetArrayDataReference
(s_crcTable);
883
ref uint lookupTable = ref MemoryMarshal.
GetArrayDataReference
(s_crcTable);
894
ref uint lookupTable = ref MemoryMarshal.
GetArrayDataReference
(s_crcTable);
src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
352
Shuffle(new Span<T>(ref MemoryMarshal.
GetArrayDataReference
(values), values.Length));
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (3)
47
_reference = ref MemoryMarshal.
GetArrayDataReference
(array);
81
_reference = ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(array), (nint)(uint)start /* force zero-extension */);
399
Buffer.Memmove(ref MemoryMarshal.
GetArrayDataReference
(destination), ref _reference, (uint)_length);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeHelpers.cs (2)
63
ref MemoryMarshal.
GetArrayDataReference
(dest),
64
ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(array), offset),
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CollectionsMarshal.cs (1)
38
span = new Span<T>(ref MemoryMarshal.
GetArrayDataReference
(items), size);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
178
void* pRawData = Unsafe.AsPointer(ref MemoryMarshal.
GetArrayDataReference
(arr));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ArrayMarshaller.cs (1)
201
return ref MemoryMarshal.
GetArrayDataReference
(array);
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMapState.cs (1)
88
return Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(hashEntries), (nuint)offset) == value;
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasick.cs (2)
81
ref AhoCorasickNode nodes = ref MemoryMarshal.
GetArrayDataReference
(_nodes);
186
ref AhoCorasickNode nodes = ref MemoryMarshal.
GetArrayDataReference
(_nodes);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\RabinKarp.cs (1)
129
ref string[]? bucketsRef = ref MemoryMarshal.
GetArrayDataReference
(_buckets);
src\libraries\System.Private.CoreLib\src\System\Span.cs (3)
49
_reference = ref MemoryMarshal.
GetArrayDataReference
(array);
86
_reference = ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(array), (nint)(uint)start /* force zero-extension */);
429
Buffer.Memmove(ref MemoryMarshal.
GetArrayDataReference
(destination), ref _reference, (uint)_length);
src\libraries\System.Private.CoreLib\src\System\String.cs (5)
87
source: ref MemoryMarshal.
GetArrayDataReference
(value));
113
source: ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(value), startIndex));
428
destination: ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(destination), destinationIndex),
473
destination: ref MemoryMarshal.
GetArrayDataReference
(chars),
497
destination: ref MemoryMarshal.
GetArrayDataReference
(chars),
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (5)
61
fixed (byte* pBytes = &MemoryMarshal.
GetArrayDataReference
(bytes))
106
fixed (byte* pBytes = &MemoryMarshal.
GetArrayDataReference
(bytes))
107
fixed (char* pChars = &MemoryMarshal.
GetArrayDataReference
(chars))
157
fixed (byte* pBytes = &MemoryMarshal.
GetArrayDataReference
(bytes))
158
fixed (char* pChars = &MemoryMarshal.
GetArrayDataReference
(chars))
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (5)
57
fixed (char* pChars = &MemoryMarshal.
GetArrayDataReference
(chars))
96
fixed (char* pChars = &MemoryMarshal.
GetArrayDataReference
(chars))
97
fixed (byte* pBytes = &MemoryMarshal.
GetArrayDataReference
(bytes))
143
fixed (char* pChars = &MemoryMarshal.
GetArrayDataReference
(chars))
144
fixed (byte* pBytes = &MemoryMarshal.
GetArrayDataReference
(bytes))
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (4)
341
ref MemoryMarshal.
GetArrayDataReference
(sourceArray),
1088
Append(ref MemoryMarshal.
GetArrayDataReference
(value), value.Length);
1339
Insert(index, ref MemoryMarshal.
GetArrayDataReference
(value), value.Length);
2277
ref char destination = ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(chunkChars), chunkLength);
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (3)
158
fixed (byte* pBytes = &MemoryMarshal.
GetArrayDataReference
(bytes))
201
fixed (byte* pBytes = &MemoryMarshal.
GetArrayDataReference
(bytes))
293
fixed (char* pChars = &MemoryMarshal.
GetArrayDataReference
(chars))
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (3)
166
fixed (byte* pBytes = &MemoryMarshal.
GetArrayDataReference
(bytes))
209
fixed (byte* pBytes = &MemoryMarshal.
GetArrayDataReference
(bytes))
301
fixed (char* pChars = &MemoryMarshal.
GetArrayDataReference
(chars))
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (3)
202
fixed (byte* pBytes = &MemoryMarshal.
GetArrayDataReference
(bytes))
245
fixed (byte* pBytes = &MemoryMarshal.
GetArrayDataReference
(bytes))
337
fixed (char* pChars = &MemoryMarshal.
GetArrayDataReference
(chars))
src\System\Buffer.CoreCLR.cs (1)
34
Memmove(ref *(pDest + (uint)destIndex), ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(src), (nint)(uint)srcIndex /* force zero-extension */), (uint)len);
src\System\Runtime\CompilerServices\CastHelpers.cs (2)
397
ref object? element = ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(array), index);
414
ref object? element = ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(array), index);
src\System\Runtime\CompilerServices\StaticsHelpers.cs (1)
183
object? threadStaticObjectNonCollectible = Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(t_ThreadStatics->NonCollectibleTlsArrayData), indexOffset - ThreadLocalData.NUMBER_OF_TLSOFFSETS_NOT_USED_IN_NONCOLLECTIBLE_ARRAY);
src\System\Runtime\InteropServices\MemoryMarshal.CoreCLR.cs (1)
23
ref
GetArrayDataReference
(array);
src\System\StubHelpers.cs (3)
111
SpanHelpers.Memmove(ref *pbNativeBuffer, ref MemoryMarshal.
GetArrayDataReference
(bytes), (nuint)nb);
368
SpanHelpers.Memmove(ref *pNative, ref MemoryMarshal.
GetArrayDataReference
(bytes), (nuint)nbytesused);
417
SpanHelpers.Memmove(ref *(byte*)bstr, ref MemoryMarshal.
GetArrayDataReference
(bytes), length);
System.Private.DataContractSerialization (2)
System\Xml\XmlBinaryWriter.cs (2)
110
ref byte bytePtr = ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(buffer), offset);
125
ref byte bytePtr = ref Unsafe.Add(ref MemoryMarshal.
GetArrayDataReference
(buffer), offset);
System.Text.Encoding.CodePages (1)
System\Text\CodePagesEncodingProvider.cs (1)
201
MemoryMarshal.
GetArrayDataReference
(array);