481 references to AsRef
GenerateDocumentationAndConfigFiles (10)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
ILCompiler.ReadyToRun (2)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl_generated.cs (1)
391return (IntPtr)Unsafe.AsPointer(ref Unsafe.AsRef(in ICorJitInfoCallbacks.s_callbacks));
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (1)
42public unsafe static IntPtr UnmanagedInstance => (IntPtr)Unsafe.AsPointer(ref Unsafe.AsRef(in s_JitConfigProvider));
ILCompiler.RyuJit (2)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl_generated.cs (1)
391return (IntPtr)Unsafe.AsPointer(ref Unsafe.AsRef(in ICorJitInfoCallbacks.s_callbacks));
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (1)
42public unsafe static IntPtr UnmanagedInstance => (IntPtr)Unsafe.AsPointer(ref Unsafe.AsRef(in s_JitConfigProvider));
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledArrayBuilderExtensions.cs (1)
37=> ref Unsafe.AsRef(in builder);
Microsoft.AspNetCore.Server.HttpSys (7)
_generated\30\Windows.Win32.HTTP_KNOWN_HEADER.InlineArrays.g.cs (2)
47 internal unsafe readonly ReadOnlySpan<winmdroot.Networking.HttpServer.HTTP_KNOWN_HEADER> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in _0), SpanLength); 87 internal unsafe readonly ReadOnlySpan<winmdroot.Networking.HttpServer.HTTP_KNOWN_HEADER> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in _0), SpanLength);
_generated\4\Windows.Win32.byte.InlineArrays.g.cs (1)
52 internal unsafe readonly ReadOnlySpan<byte> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength);
_generated\6\Windows.Win32.char.InlineArrays.g.cs (3)
53 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 111 internal unsafe readonly ReadOnlySpan<winmdroot.Foundation.CHAR> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in _0), SpanLength); 151 internal unsafe readonly ReadOnlySpan<winmdroot.Foundation.CHAR> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in _0), SpanLength);
_generated\90\Windows.Win32.ushort.InlineArrays.g.cs (1)
52 internal unsafe readonly ReadOnlySpan<ushort> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength);
Microsoft.AspNetCore.Server.IIS (6)
_generated\15\Windows.Win32.HTTP_KNOWN_HEADER.InlineArrays.g.cs (1)
47 internal unsafe readonly ReadOnlySpan<winmdroot.Networking.HttpServer.HTTP_KNOWN_HEADER> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in _0), SpanLength);
_generated\3\Windows.Win32.byte.InlineArrays.g.cs (1)
52 internal unsafe readonly ReadOnlySpan<byte> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength);
_generated\49\Windows.Win32.ushort.InlineArrays.g.cs (1)
52 internal unsafe readonly ReadOnlySpan<ushort> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength);
_generated\5\Windows.Win32.char.InlineArrays.g.cs (3)
53 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 111 internal unsafe readonly ReadOnlySpan<winmdroot.Foundation.CHAR> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in _0), SpanLength); 151 internal unsafe readonly ReadOnlySpan<winmdroot.Foundation.CHAR> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in _0), SpanLength);
Microsoft.Build (10)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis (10)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.Analyzers (10)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.AnalyzerUtilities (10)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.CodeStyle (10)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.CSharp (1)
Parser\Directives.cs (1)
132=> Interlocked.CompareExchange(ref Unsafe.AsRef(in location._directives), value._directives, null);
Microsoft.CodeAnalysis.Extensions.Package (10)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.Features (1)
QuickInfo\Presentation\TaggedTextExtensions.cs (1)
130=> ref Unsafe.AsRef(in builder);
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.Workspaces (10)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.Diagnostics.DataContractReader.Legacy (16)
_generated\32\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface.cs (10)
325global::System.Span<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress> __values_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __values_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __values_native__numElements); 378global::System.Span<ulong> __values_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress, ulong>.GetUnmanagedValuesSource(__values_native, __values_native__numElements).GetPinnableReference()), __values_native__numElements); 565global::System.Span<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress> __values_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __values_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __values_native__numElements); 620global::System.Span<ulong> __values_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress, ulong>.GetUnmanagedValuesSource(__values_native, __values_native__numElements).GetPinnableReference()), __values_native__numElements); 922global::System.Span<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress> __modules_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __modules_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __modules_native__numElements); 977global::System.Span<ulong> __modules_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress, ulong>.GetUnmanagedValuesSource(__modules_native, __modules_native__numElements).GetPinnableReference()), __modules_native__numElements); 2317global::System.Span<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress> __heaps_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __heaps_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __heaps_native__numElements); 2370global::System.Span<ulong> __heaps_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress, ulong>.GetUnmanagedValuesSource(__heaps_native, __heaps_native__numElements).GetPinnableReference()), __heaps_native__numElements); 3984global::System.Span<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress> __values_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __values_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __values_native__numElements); 4039global::System.Span<ulong> __values_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress, ulong>.GetUnmanagedValuesSource(__values_native, __values_native__numElements).GetPinnableReference()), __values_native__numElements);
_generated\35\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface4.cs (2)
77global::System.Span<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress> __arguments_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __arguments_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __arguments_native__numElements); 130global::System.Span<ulong> __arguments_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress, ulong>.GetUnmanagedValuesSource(__arguments_native, __arguments_native__numElements).GetPinnableReference()), __arguments_native__numElements);
_generated\41\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface10.cs (2)
87global::System.Span<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress> __mowList_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __mowList_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __mowList_native__numElements); 142global::System.Span<ulong> __mowList_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress, ulong>.GetUnmanagedValuesSource(__mowList_native, __mowList_native__numElements).GetPinnableReference()), __mowList_native__numElements);
_generated\50\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStressLogMsgEnum.cs (2)
130global::System.Span<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress> __args_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __args_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __args_native__numElements); 183global::System.Span<ulong> __args_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress, ulong>.GetUnmanagedValuesSource(__args_native, __args_native__numElements).GetPinnableReference()), __args_native__numElements);
Microsoft.DiaSymReader (63)
_generated\18\Microsoft.DiaSymReader.ISymUnmanagedEncUpdate.cs (2)
193global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __variables_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __variables_native__numElements); 259global::System.Span<global::System.IntPtr> __variables_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetUnmanagedValuesSource(__variables_native, __variables_native__numElements).GetPinnableReference()), __variables_native__numElements);
_generated\19\Microsoft.DiaSymReader.ISymUnmanagedMethod.cs (6)
430global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __parameters_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __parameters_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __parameters_native__numElements); 495global::System.Span<global::System.IntPtr> __parameters_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetUnmanagedValuesSource(__parameters_native, __parameters_native__numElements).GetPinnableReference()), __parameters_native__numElements); 625global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __documents_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __documents_native__numElements); 705global::System.Span<global::System.IntPtr> __documents_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument, global::System.IntPtr>.GetUnmanagedValuesSource(__documents_native, __documents_native__numElements).GetPinnableReference()), __documents_native__numElements); 776global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __documents_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __documents_native__numElements); 875global::System.Span<global::System.IntPtr> __documents_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument, global::System.IntPtr>.GetUnmanagedValuesSource(__documents_native, __documents_native__numElements).GetPinnableReference()), __documents_native__numElements);
_generated\20\Microsoft.DiaSymReader.ISymUnmanagedMethod2.cs (3)
316global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __parameters_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __parameters_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __parameters_native__numElements); 435global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __documents_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __documents_native__numElements); 520global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __documents_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __documents_native__numElements);
_generated\21\Microsoft.DiaSymReader.ISymUnmanagedNamespace.cs (4)
138global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __namespaces_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __namespaces_native__numElements); 203global::System.Span<global::System.IntPtr> __namespaces_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace, global::System.IntPtr>.GetUnmanagedValuesSource(__namespaces_native, __namespaces_native__numElements).GetPinnableReference()), __namespaces_native__numElements); 271global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __variables_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __variables_native__numElements); 336global::System.Span<global::System.IntPtr> __variables_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetUnmanagedValuesSource(__variables_native, __variables_native__numElements).GetPinnableReference()), __variables_native__numElements);
_generated\22\Microsoft.DiaSymReader.ISymUnmanagedReader.cs (10)
176global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __documents_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __documents_native__numElements); 241global::System.Span<global::System.IntPtr> __documents_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument, global::System.IntPtr>.GetUnmanagedValuesSource(__documents_native, __documents_native__numElements).GetPinnableReference()), __documents_native__numElements); 471global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __variables_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __variables_native__numElements); 536global::System.Span<global::System.IntPtr> __variables_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetUnmanagedValuesSource(__variables_native, __variables_native__numElements).GetPinnableReference()), __variables_native__numElements); 604global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __variables_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __variables_native__numElements); 669global::System.Span<global::System.IntPtr> __variables_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetUnmanagedValuesSource(__variables_native, __variables_native__numElements).GetPinnableReference()), __variables_native__numElements); 860global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __namespaces_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __namespaces_native__numElements); 925global::System.Span<global::System.IntPtr> __namespaces_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace, global::System.IntPtr>.GetUnmanagedValuesSource(__namespaces_native, __namespaces_native__numElements).GetPinnableReference()), __namespaces_native__numElements); 1221global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __methods_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __methods_native__numElements); 1289global::System.Span<global::System.IntPtr> __methods_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod, global::System.IntPtr>.GetUnmanagedValuesSource(__methods_native, __methods_native__numElements).GetPinnableReference()), __methods_native__numElements);
_generated\23\Microsoft.DiaSymReader.ISymUnmanagedReader2.cs (7)
219global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __methods_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __methods_native__numElements); 287global::System.Span<global::System.IntPtr> __methods_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod, global::System.IntPtr>.GetUnmanagedValuesSource(__methods_native, __methods_native__numElements).GetPinnableReference()), __methods_native__numElements); 393global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __documents_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __documents_native__numElements); 566global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __variables_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __variables_native__numElements); 646global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __variables_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __variables_native__numElements); 791global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __namespaces_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __namespaces_native__numElements); 995global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __methods_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __methods_native__numElements);
_generated\24\Microsoft.DiaSymReader.ISymUnmanagedReader3.cs (6)
253global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __documents_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __documents_native__numElements); 426global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __variables_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __variables_native__numElements); 506global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __variables_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __variables_native__numElements); 651global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __namespaces_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __namespaces_native__numElements); 855global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __methods_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __methods_native__numElements); 1067global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __methods_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __methods_native__numElements);
_generated\25\Microsoft.DiaSymReader.ISymUnmanagedReader4.cs (6)
288global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __documents_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __documents_native__numElements); 461global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __variables_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __variables_native__numElements); 541global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __variables_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __variables_native__numElements); 686global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __namespaces_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __namespaces_native__numElements); 890global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __methods_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __methods_native__numElements); 1102global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __methods_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __methods_native__numElements);
_generated\26\Microsoft.DiaSymReader.ISymUnmanagedReader5.cs (6)
193global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __documents_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __documents_native__numElements); 366global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __variables_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __variables_native__numElements); 446global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __variables_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __variables_native__numElements); 591global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __namespaces_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __namespaces_native__numElements); 795global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __methods_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __methods_native__numElements); 1007global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __methods_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __methods_native__numElements);
_generated\28\Microsoft.DiaSymReader.ISymUnmanagedScope.cs (6)
213global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedScope> __children_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __children_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __children_native__numElements); 278global::System.Span<global::System.IntPtr> __children_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedScope, global::System.IntPtr>.GetUnmanagedValuesSource(__children_native, __children_native__numElements).GetPinnableReference()), __children_native__numElements); 478global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __locals_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __locals_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __locals_native__numElements); 543global::System.Span<global::System.IntPtr> __locals_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetUnmanagedValuesSource(__locals_native, __locals_native__numElements).GetPinnableReference()), __locals_native__numElements); 611global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __namespaces_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __namespaces_native__numElements); 676global::System.Span<global::System.IntPtr> __namespaces_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace, global::System.IntPtr>.GetUnmanagedValuesSource(__namespaces_native, __namespaces_native__numElements).GetPinnableReference()), __namespaces_native__numElements);
_generated\29\Microsoft.DiaSymReader.ISymUnmanagedScope2.cs (5)
135global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedConstant> __constants_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __constants_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __constants_native__numElements); 200global::System.Span<global::System.IntPtr> __constants_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedConstant, global::System.IntPtr>.GetUnmanagedValuesSource(__constants_native, __constants_native__numElements).GetPinnableReference()), __constants_native__numElements); 340global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedScope> __children_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __children_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __children_native__numElements); 483global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __locals_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __locals_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __locals_native__numElements); 563global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __namespaces_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __namespaces_native__numElements);
_generated\9\Microsoft.DiaSymReader.ISymEncUnmanagedMethod.cs (2)
250global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __documents_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __documents_native__numElements); 315global::System.Span<global::System.IntPtr> __documents_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument, global::System.IntPtr>.GetUnmanagedValuesSource(__documents_native, __documents_native__numElements).GetPinnableReference()), __documents_native__numElements);
Microsoft.Extensions.Caching.Hybrid (4)
Internal\BufferChunk.cs (2)
83Unsafe.AsRef(in this) = default; // anti foot-shotgun double-return guard; not 100%, but worth doing 97Unsafe.AsRef(in copy._lengthAndPoolFlag) &= ~FlagReturnToPool;
Internal\DefaultHybridCache.CacheItem.cs (1)
44=> Unsafe.AsRef(in _creationTimestamp) = timestamp;
Internal\DefaultHybridCache.cs (1)
60internal void DebugRemoveFeatures(CacheFeatures features) => Unsafe.AsRef(in _features) &= ~features;
Microsoft.Maui.Controls.BindingSourceGen (1)
EquatableArray.cs (1)
65 return Unsafe.As<T[]?, ImmutableArray<T>>(ref Unsafe.AsRef(in this.array));
Microsoft.Private.Windows.Core (102)
_generated\12\Windows.Win32.byte.InlineArrays.g.cs (1)
52 internal unsafe readonly ReadOnlySpan<byte> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength);
_generated\122\Windows.Win32.IAdviseSink.g.cs (1)
165get => ref Unsafe.AsRef(in IID_Guid);
_generated\123\Windows.Win32.IBindCtx.g.cs (1)
266get => ref Unsafe.AsRef(in IID_Guid);
_generated\126\Windows.Win32.IDataObject.g.cs (1)
343get => ref Unsafe.AsRef(in IID_Guid);
_generated\127\Windows.Win32.IDataObjectAsyncCapability.g.cs (1)
209get => ref Unsafe.AsRef(in IID_Guid);
_generated\128\Windows.Win32.IDispatch.g.cs (1)
242get => ref Unsafe.AsRef(in IID_Guid);
_generated\129\Windows.Win32.IDispatchEx.g.cs (1)
311get => ref Unsafe.AsRef(in IID_Guid);
_generated\132\Windows.Win32.IDragSourceHelper.g.cs (1)
157get => ref Unsafe.AsRef(in IID_Guid);
_generated\133\Windows.Win32.IDragSourceHelper2.g.cs (1)
145get => ref Unsafe.AsRef(in IID_Guid);
_generated\134\Windows.Win32.IDropSource.g.cs (1)
126get => ref Unsafe.AsRef(in IID_Guid);
_generated\135\Windows.Win32.IDropSourceNotify.g.cs (1)
118get => ref Unsafe.AsRef(in IID_Guid);
_generated\136\Windows.Win32.IDropTarget.g.cs (1)
205get => ref Unsafe.AsRef(in IID_Guid);
_generated\137\Windows.Win32.IDropTargetHelper.g.cs (1)
226get => ref Unsafe.AsRef(in IID_Guid);
_generated\138\Windows.Win32.IEnumFORMATETC.g.cs (1)
173get => ref Unsafe.AsRef(in IID_Guid);
_generated\139\Windows.Win32.IEnumMoniker.g.cs (1)
168get => ref Unsafe.AsRef(in IID_Guid);
_generated\140\Windows.Win32.IEnumSTATDATA.g.cs (1)
173get => ref Unsafe.AsRef(in IID_Guid);
_generated\141\Windows.Win32.IEnumSTATSTG.g.cs (1)
183get => ref Unsafe.AsRef(in IID_Guid);
_generated\142\Windows.Win32.IEnumString.g.cs (1)
170get => ref Unsafe.AsRef(in IID_Guid);
_generated\143\Windows.Win32.IEnumUnknown.g.cs (1)
165get => ref Unsafe.AsRef(in IID_Guid);
_generated\144\Windows.Win32.IGlobalInterfaceTable.g.cs (1)
173get => ref Unsafe.AsRef(in IID_Guid);
_generated\147\Windows.Win32.IMoniker.g.cs (1)
524get => ref Unsafe.AsRef(in IID_Guid);
_generated\151\Windows.Win32.IPersist.g.cs (1)
119get => ref Unsafe.AsRef(in IID_Guid);
_generated\152\Windows.Win32.IPersistStream.g.cs (1)
186get => ref Unsafe.AsRef(in IID_Guid);
_generated\153\Windows.Win32.IPicture.g.cs (1)
445get => ref Unsafe.AsRef(in IID_Guid);
_generated\154\Windows.Win32.IPictureDisp.g.cs (1)
185get => ref Unsafe.AsRef(in IID_Guid);
_generated\155\Windows.Win32.IRecordInfo.g.cs (1)
477get => ref Unsafe.AsRef(in IID_Guid);
_generated\156\Windows.Win32.IRunningObjectTable.g.cs (1)
248get => ref Unsafe.AsRef(in IID_Guid);
_generated\157\Windows.Win32.ISequentialStream.g.cs (1)
178get => ref Unsafe.AsRef(in IID_Guid);
_generated\158\Windows.Win32.IServiceProvider.g.cs (1)
122get => ref Unsafe.AsRef(in IID_Guid);
_generated\159\Windows.Win32.IStorage.g.cs (1)
552get => ref Unsafe.AsRef(in IID_Guid);
_generated\160\Windows.Win32.IStream.g.cs (1)
368get => ref Unsafe.AsRef(in IID_Guid);
_generated\161\Windows.Win32.ITypeComp.g.cs (1)
150get => ref Unsafe.AsRef(in IID_Guid);
_generated\162\Windows.Win32.ITypeInfo.g.cs (1)
657get => ref Unsafe.AsRef(in IID_Guid);
_generated\163\Windows.Win32.ITypeLib.g.cs (1)
364get => ref Unsafe.AsRef(in IID_Guid);
_generated\164\Windows.Win32.IUnknown.g.cs (1)
118get => ref Unsafe.AsRef(in IID_Guid);
_generated\37\Windows.Win32.char.InlineArrays.g.cs (2)
53 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 117 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength);
System\Value.cs (56)
604return new(Unsafe.As<T, bool>(ref Unsafe.AsRef(in value))); 606return new(Unsafe.As<T, byte>(ref Unsafe.AsRef(in value))); 608return new(Unsafe.As<T, sbyte>(ref Unsafe.AsRef(in value))); 610return new(Unsafe.As<T, char>(ref Unsafe.AsRef(in value))); 612return new(Unsafe.As<T, short>(ref Unsafe.AsRef(in value))); 614return new(Unsafe.As<T, int>(ref Unsafe.AsRef(in value))); 616return new(Unsafe.As<T, long>(ref Unsafe.AsRef(in value))); 618return new(Unsafe.As<T, ushort>(ref Unsafe.AsRef(in value))); 620return new(Unsafe.As<T, uint>(ref Unsafe.AsRef(in value))); 622return new(Unsafe.As<T, ulong>(ref Unsafe.AsRef(in value))); 624return new(Unsafe.As<T, float>(ref Unsafe.AsRef(in value))); 626return new(Unsafe.As<T, double>(ref Unsafe.AsRef(in value))); 628return new(Unsafe.As<T, DateTime>(ref Unsafe.AsRef(in value))); 630return new(Unsafe.As<T, DateTimeOffset>(ref Unsafe.AsRef(in value))); 632return new(Unsafe.As<T, Color>(ref Unsafe.AsRef(in value))); 635return new(Unsafe.As<T, bool?>(ref Unsafe.AsRef(in value))); 637return new(Unsafe.As<T, byte?>(ref Unsafe.AsRef(in value))); 639return new(Unsafe.As<T, sbyte?>(ref Unsafe.AsRef(in value))); 641return new(Unsafe.As<T, char?>(ref Unsafe.AsRef(in value))); 643return new(Unsafe.As<T, short?>(ref Unsafe.AsRef(in value))); 645return new(Unsafe.As<T, int?>(ref Unsafe.AsRef(in value))); 647return new(Unsafe.As<T, long?>(ref Unsafe.AsRef(in value))); 649return new(Unsafe.As<T, ushort?>(ref Unsafe.AsRef(in value))); 651return new(Unsafe.As<T, uint?>(ref Unsafe.AsRef(in value))); 653return new(Unsafe.As<T, ulong?>(ref Unsafe.AsRef(in value))); 655return new(Unsafe.As<T, float?>(ref Unsafe.AsRef(in value))); 657return new(Unsafe.As<T, double?>(ref Unsafe.AsRef(in value))); 659return new(Unsafe.As<T, DateTime?>(ref Unsafe.AsRef(in value))); 661return new(Unsafe.As<T, DateTimeOffset?>(ref Unsafe.AsRef(in value))); 664return new(Unsafe.As<T, ArraySegment<byte>>(ref Unsafe.AsRef(in value))); 666return new(Unsafe.As<T, ArraySegment<char>>(ref Unsafe.AsRef(in value))); 716value = Unsafe.As<Union, T>(ref Unsafe.AsRef(in _union)); 722value = Unsafe.As<Color, T>(ref Unsafe.AsRef(in color)); 727value = Unsafe.As<DateTime, T>(ref Unsafe.AsRef(in _union.DateTime)); 733value = Unsafe.As<DateTimeOffset, T>(ref Unsafe.AsRef(in dto)); 739value = Unsafe.As<DateTimeOffset, T>(ref Unsafe.AsRef(in dto)); 811value = Unsafe.As<int?, T>(ref Unsafe.AsRef(in @int)); 817value = Unsafe.As<long?, T>(ref Unsafe.AsRef(in @long)); 823value = Unsafe.As<bool?, T>(ref Unsafe.AsRef(in @bool)); 829value = Unsafe.As<float?, T>(ref Unsafe.AsRef(in single)); 835value = Unsafe.As<double?, T>(ref Unsafe.AsRef(in @double)); 841value = Unsafe.As<uint?, T>(ref Unsafe.AsRef(in @uint)); 847value = Unsafe.As<ulong?, T>(ref Unsafe.AsRef(in @ulong)); 853value = Unsafe.As<char?, T>(ref Unsafe.AsRef(in @char)); 859value = Unsafe.As<short?, T>(ref Unsafe.AsRef(in @short)); 865value = Unsafe.As<ushort?, T>(ref Unsafe.AsRef(in @ushort)); 871value = Unsafe.As<byte?, T>(ref Unsafe.AsRef(in @byte)); 877value = Unsafe.As<sbyte?, T>(ref Unsafe.AsRef(in @sbyte)); 883value = Unsafe.As<Color?, T>(ref Unsafe.AsRef(in color)); 889value = Unsafe.As<DateTime?, T>(ref Unsafe.AsRef(in dateTime)); 895value = Unsafe.As<DateTimeOffset?, T>(ref Unsafe.AsRef(in dto)); 901value = Unsafe.As<DateTimeOffset?, T>(ref Unsafe.AsRef(in dto)); 920value = Unsafe.As<NullableTemplate<byte>, T>(ref Unsafe.AsRef(in byteTemplate)); 925value = Unsafe.As<NullableTemplate<ushort>, T>(ref Unsafe.AsRef(in ushortTemplate)); 930value = Unsafe.As<NullableTemplate<uint>, T>(ref Unsafe.AsRef(in uintTemplate)); 935value = Unsafe.As<NullableTemplate<ulong>, T>(ref Unsafe.AsRef(in ulongTemplate));
System\Value.PackedColor.cs (1)
35CastColor castColor = Unsafe.As<Color, CastColor>(ref Unsafe.AsRef(in color));
System\Value.StraightCastFlag.cs (1)
16public override T To(in Value value) => Unsafe.As<Union, T>(ref Unsafe.AsRef(in value._union));
Windows\Win32\Foundation\BSTR.cs (1)
19Unsafe.AsRef(in this) = default;
Windows\Win32\System\Com\ComScope.cs (2)
49public static implicit operator T**(in ComScope<T> scope) => (T**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value)); 52public static implicit operator void**(in ComScope<T> scope) => (void**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value));
Windows\Win32\System\Com\IID.cs (2)
34return (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in default(T).Guid)); 54public static Guid* NULL() => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_NULL));
Windows\Win32\System\Com\SafeArrayScope.cs (2)
256public static implicit operator SAFEARRAY**(in SafeArrayScope<T> scope) => (SAFEARRAY**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value)); 259public static implicit operator void**(in SafeArrayScope<T> scope) => (void**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value));
Roslyn.Diagnostics.Analyzers (10)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\roslyn\src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
System.Collections.Immutable (9)
System\Collections\Frozen\FrozenDictionary.cs (3)
568if (Unsafe.IsNullRef(ref Unsafe.AsRef(in valueRef))) 592!Unsafe.IsNullRef(ref Unsafe.AsRef(in GetValueRefOrNullRef(key))); 617if (!Unsafe.IsNullRef(ref Unsafe.AsRef(in valueRef)))
System\Collections\Immutable\ImmutableInterlocked.cs (6)
128T[]? oldArray = Volatile.Read(ref Unsafe.AsRef(in location.array)); 138T[]? interlockedResult = Interlocked.CompareExchange(ref Unsafe.AsRef(in location.array), newImmutableArray.array, oldArray); 175T[]? oldArray = Volatile.Read(ref Unsafe.AsRef(in location.array)); 185T[]? interlockedResult = Interlocked.CompareExchange(ref Unsafe.AsRef(in location.array), newImmutableArray.array, oldArray); 205return new ImmutableArray<T>(Interlocked.Exchange(ref Unsafe.AsRef(in location.array), value.array)); 219return new ImmutableArray<T>(Interlocked.CompareExchange(ref Unsafe.AsRef(in location.array), value.array, comparand.array));
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\ActivityCreationOptions.cs (3)
122Unsafe.AsRef(in _samplerTags) = new ActivityTagsCollection(); 150Unsafe.AsRef(in _context) = new ActivityContext(id, default, activityTraceFlags); 170internal void SetTraceState(string? traceState) => Unsafe.AsRef(in _traceState) = traceState;
System.Drawing.Common (3)
_generated\3\Windows.Win32.byte.InlineArrays.g.cs (1)
52 internal unsafe readonly ReadOnlySpan<byte> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength);
System\Drawing\Interop\LOGFONT.cs (1)
45}, lfQuality={lfQuality}, lfPitchAndFamily={lfPitchAndFamily}, lfFaceName={Unsafe.AsRef(in this).lfFaceName}";
System\Drawing\SystemFonts.cs (1)
268GetFontFromData(Unsafe.As<LOGFONTW, LOGFONT>(ref Unsafe.AsRef(in logFont)));
System.Management (1)
System\Management\InteropClasses\WMIInterop.cs (1)
1351if (0 == Marshal.QueryInterface(pComThreadingInfo, ref Unsafe.AsRef(in IID_IObjectContext), out pObjectContext))
System.Memory (1)
System\Buffers\SequenceReader.cs (1)
102Unsafe.AsRef(in _length) = Sequence.Length;
System.Numerics.Tensors (4)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
241_reference = ref Unsafe.AsRef(in data); 246_reference = ref Unsafe.AsRef(in reference);
System\Runtime\InteropServices\TensorMarshal.cs (2)
23return new TensorSpan<T>(ref Unsafe.AsRef(ref data), dataLength, lengths, strides, pinned); 37return new ReadOnlyTensorSpan<T>(in Unsafe.AsRef(in data), dataLength, lengths, strides, pinned);
System.Private.CoreLib (76)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (8)
249return Unsafe.As<GuidResult, Guid>(ref Unsafe.AsRef(in this)); 325Unsafe.AsRef(in result._a) = (int)(unix_ts_ms >> 16); 326Unsafe.AsRef(in result._b) = (short)(unix_ts_ms); 328Unsafe.AsRef(in result._c) = (short)((result._c & ~VersionMask) | Version7Value); 329Unsafe.AsRef(in result._d) = (byte)((result._d & ~Variant10xxMask) | Variant10xxValue); 1078ref int r = ref Unsafe.AsRef(in _a); 1096ref int rA = ref Unsafe.AsRef(in left._a); 1097ref int rB = ref Unsafe.AsRef(in right._a);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.Unix.cs (2)
29Unsafe.AsRef(in g._c) = (short)((g._c & ~VersionMask) | Version4Value); 31Unsafe.AsRef(in g._d) = (byte)((g._d & ~Variant10xxMask) | Variant10xxValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.BigInteger.cs (1)
948ref BigInteger rhs = ref Unsafe.As<uint, BigInteger>(ref Unsafe.AsRef(in Pow10BigNumTable[pow10BigNumTableIndex]));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix3x2.cs (3)
39internal readonly ref readonly Impl AsROImpl() => ref Unsafe.As<Matrix3x2, Impl>(ref Unsafe.AsRef(in this)); 211return Unsafe.Add(ref Unsafe.AsRef(in impl).X, row); 316return Unsafe.Add(ref Unsafe.AsRef(in impl.X.X), (row * ColumnCount) + column);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (5)
44internal readonly ref readonly Impl AsROImpl() => ref Unsafe.As<Matrix4x4, Impl>(ref Unsafe.AsRef(in this)); 308return Unsafe.Add(ref Unsafe.AsRef(in impl.X), row).AsVector4(); 358Unsafe.Add(ref Unsafe.AsRef(in impl.X), row) = value.AsVector128(); 424return Unsafe.Add(ref Unsafe.As<Impl, float>(ref Unsafe.AsRef(in impl)), (row * ColumnCount) + column); 474Unsafe.Add(ref Unsafe.As<Impl, float>(ref Unsafe.AsRef(in impl)), (row * ColumnCount) + column) = value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (4)
2250ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.AsRef(in source)); 2266ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.Add(ref Unsafe.AsRef(in source), (nint)elementOffset)); 3810ref T address = ref Unsafe.As<Vector<T>, T>(ref Unsafe.AsRef(in vector)); 3818ref T address = ref Unsafe.As<Vector<T>, T>(ref Unsafe.AsRef(in vector));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (2)
730public static Vector2 LoadUnsafe(ref readonly float source) => Unsafe.As<float, Vector2>(ref Unsafe.AsRef(in source)); 736public static Vector2 LoadUnsafe(ref readonly float source, nuint elementOffset) => Unsafe.As<float, Vector2>(ref Unsafe.Add(ref Unsafe.AsRef(in source), (nint)elementOffset));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (2)
767public static Vector3 LoadUnsafe(ref readonly float source) => Unsafe.As<float, Vector3>(ref Unsafe.AsRef(in source)); 773public static Vector3 LoadUnsafe(ref readonly float source, nuint elementOffset) => Unsafe.As<float, Vector3>(ref Unsafe.Add(ref Unsafe.AsRef(in source), (nint)elementOffset));
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (1)
120_reference = ref Unsafe.AsRef(in reference);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\Unsafe.cs (1)
601return As<byte, T>(ref Unsafe.AsRef(in source));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (4)
94internal static unsafe ref T GetNonNullPinnableReference<T>(Span<T> span) => ref (span.Length != 0) ? ref Unsafe.AsRef(in span._reference) : ref Unsafe.AsRef<T>((void*)1); 101internal static unsafe ref T GetNonNullPinnableReference<T>(ReadOnlySpan<T> span) => ref (span.Length != 0) ? ref Unsafe.AsRef(in span._reference) : ref Unsafe.AsRef<T>((void*)1); 229new Span<T>(ref Unsafe.AsRef(in reference), length); 246new ReadOnlySpan<T>(ref Unsafe.AsRef(in reference), length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (6)
2541ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.AsRef(in source)); 2557ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.Add(ref Unsafe.AsRef(in source), (nint)elementOffset)); 4342ref T address = ref Unsafe.As<Vector128<T>, T>(ref Unsafe.AsRef(in vector)); 4378ref T address = ref Unsafe.As<Vector128<T>, T>(ref Unsafe.AsRef(in vector)); 4383internal static void SetLowerUnsafe<T>(in this Vector128<T> vector, Vector64<T> value) => Unsafe.AsRef(in vector._lower) = value; 4386internal static void SetUpperUnsafe<T>(in this Vector128<T> vector, Vector64<T> value) => Unsafe.AsRef(in vector._upper) = value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (6)
2633ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.AsRef(in source)); 2649ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.Add(ref Unsafe.AsRef(in source), (nint)elementOffset)); 4245ref T address = ref Unsafe.As<Vector256<T>, T>(ref Unsafe.AsRef(in vector)); 4294ref T address = ref Unsafe.As<Vector256<T>, T>(ref Unsafe.AsRef(in vector)); 4298internal static void SetLowerUnsafe<T>(in this Vector256<T> vector, Vector128<T> value) => Unsafe.AsRef(in vector._lower) = value; 4300internal static void SetUpperUnsafe<T>(in this Vector256<T> vector, Vector128<T> value) => Unsafe.AsRef(in vector._upper) = value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (6)
2675ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.AsRef(in source)); 2691ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.Add(ref Unsafe.AsRef(in source), (nint)elementOffset)); 4238ref T address = ref Unsafe.As<Vector512<T>, T>(ref Unsafe.AsRef(in vector)); 4287ref T address = ref Unsafe.As<Vector512<T>, T>(ref Unsafe.AsRef(in vector)); 4291internal static void SetLowerUnsafe<T>(in this Vector512<T> vector, Vector256<T> value) => Unsafe.AsRef(in vector._lower) = value; 4293internal static void SetUpperUnsafe<T>(in this Vector512<T> vector, Vector256<T> value) => Unsafe.AsRef(in vector._upper) = value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (4)
2638ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.AsRef(in source)); 2654ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.Add(ref Unsafe.AsRef(in source), (nint)elementOffset)); 4465ref T address = ref Unsafe.As<Vector64<T>, T>(ref Unsafe.AsRef(in vector)); 4501ref T address = ref Unsafe.As<Vector64<T>, T>(ref Unsafe.AsRef(in vector));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64_1.cs (4)
160Unsafe.AsRef(in result._00) = left._00 & right._00; 177Unsafe.AsRef(in result._00) = left._00 | right._00; 252Unsafe.AsRef(in result._00) = left._00 ^ right._00; 343Unsafe.AsRef(in result._00) = ~vector._00;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasick.cs (2)
102ref Unsafe.AsRef(in _startingAsciiChars)); 211ref Unsafe.AsRef(in _startingAsciiChars));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Interlocked.cs (1)
570CompareExchange(ref Unsafe.AsRef(in location), 0, 0);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Volatile.cs (14)
22Unsafe.As<bool, VolatileBoolean>(ref Unsafe.AsRef(in location)).Value; 36Unsafe.As<byte, VolatileByte>(ref Unsafe.AsRef(in location)).Value; 49long result = Read(ref Unsafe.As<double, long>(ref Unsafe.AsRef(in location))); 65Unsafe.As<short, VolatileInt16>(ref Unsafe.AsRef(in location)).Value; 79Unsafe.As<int, VolatileInt32>(ref Unsafe.AsRef(in location)).Value; 92(long)Unsafe.As<long, VolatileIntPtr>(ref Unsafe.AsRef(in location)).Value; 115Unsafe.As<nint, VolatileIntPtr>(ref Unsafe.AsRef(in location)).Value; 130Unsafe.As<sbyte, VolatileSByte>(ref Unsafe.AsRef(in location)).Value; 145Unsafe.As<float, VolatileSingle>(ref Unsafe.AsRef(in location)).Value; 160Unsafe.As<ushort, VolatileUInt16>(ref Unsafe.AsRef(in location)).Value; 176Unsafe.As<uint, VolatileUInt32>(ref Unsafe.AsRef(in location)).Value; 190(ulong)Read(ref Unsafe.As<ulong, long>(ref Unsafe.AsRef(in location))); 206Unsafe.As<nuint, VolatileUIntPtr>(ref Unsafe.AsRef(in location)).Value; 222Unsafe.As<T>(Unsafe.As<T, VolatileObject>(ref Unsafe.AsRef(in location)).Value)!;
System.Private.Windows.Core (69)
_generated\12\Windows.Win32.byte.InlineArrays.g.cs (1)
52 internal unsafe readonly ReadOnlySpan<byte> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength);
_generated\37\Windows.Win32.char.InlineArrays.g.cs (2)
53 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 117 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength);
System\Value.cs (56)
604return new(Unsafe.As<T, bool>(ref Unsafe.AsRef(in value))); 606return new(Unsafe.As<T, byte>(ref Unsafe.AsRef(in value))); 608return new(Unsafe.As<T, sbyte>(ref Unsafe.AsRef(in value))); 610return new(Unsafe.As<T, char>(ref Unsafe.AsRef(in value))); 612return new(Unsafe.As<T, short>(ref Unsafe.AsRef(in value))); 614return new(Unsafe.As<T, int>(ref Unsafe.AsRef(in value))); 616return new(Unsafe.As<T, long>(ref Unsafe.AsRef(in value))); 618return new(Unsafe.As<T, ushort>(ref Unsafe.AsRef(in value))); 620return new(Unsafe.As<T, uint>(ref Unsafe.AsRef(in value))); 622return new(Unsafe.As<T, ulong>(ref Unsafe.AsRef(in value))); 624return new(Unsafe.As<T, float>(ref Unsafe.AsRef(in value))); 626return new(Unsafe.As<T, double>(ref Unsafe.AsRef(in value))); 628return new(Unsafe.As<T, DateTime>(ref Unsafe.AsRef(in value))); 630return new(Unsafe.As<T, DateTimeOffset>(ref Unsafe.AsRef(in value))); 632return new(Unsafe.As<T, Color>(ref Unsafe.AsRef(in value))); 635return new(Unsafe.As<T, bool?>(ref Unsafe.AsRef(in value))); 637return new(Unsafe.As<T, byte?>(ref Unsafe.AsRef(in value))); 639return new(Unsafe.As<T, sbyte?>(ref Unsafe.AsRef(in value))); 641return new(Unsafe.As<T, char?>(ref Unsafe.AsRef(in value))); 643return new(Unsafe.As<T, short?>(ref Unsafe.AsRef(in value))); 645return new(Unsafe.As<T, int?>(ref Unsafe.AsRef(in value))); 647return new(Unsafe.As<T, long?>(ref Unsafe.AsRef(in value))); 649return new(Unsafe.As<T, ushort?>(ref Unsafe.AsRef(in value))); 651return new(Unsafe.As<T, uint?>(ref Unsafe.AsRef(in value))); 653return new(Unsafe.As<T, ulong?>(ref Unsafe.AsRef(in value))); 655return new(Unsafe.As<T, float?>(ref Unsafe.AsRef(in value))); 657return new(Unsafe.As<T, double?>(ref Unsafe.AsRef(in value))); 659return new(Unsafe.As<T, DateTime?>(ref Unsafe.AsRef(in value))); 661return new(Unsafe.As<T, DateTimeOffset?>(ref Unsafe.AsRef(in value))); 664return new(Unsafe.As<T, ArraySegment<byte>>(ref Unsafe.AsRef(in value))); 666return new(Unsafe.As<T, ArraySegment<char>>(ref Unsafe.AsRef(in value))); 716value = Unsafe.As<Union, T>(ref Unsafe.AsRef(in _union)); 722value = Unsafe.As<Color, T>(ref Unsafe.AsRef(in color)); 727value = Unsafe.As<DateTime, T>(ref Unsafe.AsRef(in _union.DateTime)); 733value = Unsafe.As<DateTimeOffset, T>(ref Unsafe.AsRef(in dto)); 739value = Unsafe.As<DateTimeOffset, T>(ref Unsafe.AsRef(in dto)); 811value = Unsafe.As<int?, T>(ref Unsafe.AsRef(in @int)); 817value = Unsafe.As<long?, T>(ref Unsafe.AsRef(in @long)); 823value = Unsafe.As<bool?, T>(ref Unsafe.AsRef(in @bool)); 829value = Unsafe.As<float?, T>(ref Unsafe.AsRef(in single)); 835value = Unsafe.As<double?, T>(ref Unsafe.AsRef(in @double)); 841value = Unsafe.As<uint?, T>(ref Unsafe.AsRef(in @uint)); 847value = Unsafe.As<ulong?, T>(ref Unsafe.AsRef(in @ulong)); 853value = Unsafe.As<char?, T>(ref Unsafe.AsRef(in @char)); 859value = Unsafe.As<short?, T>(ref Unsafe.AsRef(in @short)); 865value = Unsafe.As<ushort?, T>(ref Unsafe.AsRef(in @ushort)); 871value = Unsafe.As<byte?, T>(ref Unsafe.AsRef(in @byte)); 877value = Unsafe.As<sbyte?, T>(ref Unsafe.AsRef(in @sbyte)); 883value = Unsafe.As<Color?, T>(ref Unsafe.AsRef(in color)); 889value = Unsafe.As<DateTime?, T>(ref Unsafe.AsRef(in dateTime)); 895value = Unsafe.As<DateTimeOffset?, T>(ref Unsafe.AsRef(in dto)); 901value = Unsafe.As<DateTimeOffset?, T>(ref Unsafe.AsRef(in dto)); 920value = Unsafe.As<NullableTemplate<byte>, T>(ref Unsafe.AsRef(in byteTemplate)); 925value = Unsafe.As<NullableTemplate<ushort>, T>(ref Unsafe.AsRef(in ushortTemplate)); 930value = Unsafe.As<NullableTemplate<uint>, T>(ref Unsafe.AsRef(in uintTemplate)); 935value = Unsafe.As<NullableTemplate<ulong>, T>(ref Unsafe.AsRef(in ulongTemplate));
System\Value.PackedColor.cs (1)
35CastColor castColor = Unsafe.As<Color, CastColor>(ref Unsafe.AsRef(in color));
System\Value.StraightCastFlag.cs (1)
16public override T To(in Value value) => Unsafe.As<Union, T>(ref Unsafe.AsRef(in value._union));
Windows\Win32\Foundation\BSTR.cs (1)
19Unsafe.AsRef(in this) = default;
Windows\Win32\System\Com\ComScope.cs (2)
49public static implicit operator T**(in ComScope<T> scope) => (T**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value)); 52public static implicit operator void**(in ComScope<T> scope) => (void**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value));
Windows\Win32\System\Com\IID.cs (3)
32return (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in T.Guid)); 45return ref Unsafe.AsRef(in T.Guid); 54public static Guid* NULL() => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_NULL));
Windows\Win32\System\Com\SafeArrayScope.cs (2)
256public static implicit operator SAFEARRAY**(in SafeArrayScope<T> scope) => (SAFEARRAY**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value)); 259public static implicit operator void**(in SafeArrayScope<T> scope) => (void**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value));
System.Private.Windows.GdiPlus (1)
_generated\25\Windows.Win32.float.InlineArrays.g.cs (1)
52 internal unsafe readonly ReadOnlySpan<float> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength);
System.Windows.Forms.Primitives (8)
_generated\12\Windows.Win32.byte.InlineArrays.g.cs (2)
52 internal unsafe readonly ReadOnlySpan<byte> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 98 internal unsafe readonly ReadOnlySpan<byte> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength);
_generated\19\Windows.Win32.char.InlineArrays.g.cs (5)
53 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 117 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 181 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 245 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 309 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength);
_generated\196\Windows.Win32.int.InlineArrays.g.cs (1)
52 internal unsafe readonly ReadOnlySpan<int> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength);