src/Microsoft.Diagnostics.Runtime.Utilities/DbgEng/DbgEngIDataReader.cs [411:435]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - public unsafe bool Read(ulong address, out T value) where T : unmanaged { Span buffer = stackalloc byte[sizeof(T)]; if (Read(address, buffer) == buffer.Length) { value = Unsafe.As(ref MemoryMarshal.GetReference(buffer)); return true; } value = default; return false; } public T Read(ulong address) where T : unmanaged { Read(address, out T result); return result; } public bool ReadPointer(ulong address, out ulong value) { Span buffer = stackalloc byte[IntPtr.Size]; if (Read(address, buffer) == IntPtr.Size) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - src/Microsoft.Diagnostics.Runtime/DataReaders/CommonMemoryReader.cs [16:40]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - public unsafe bool Read(ulong address, out T value) where T : unmanaged { Span buffer = stackalloc byte[sizeof(T)]; if (Read(address, buffer) == buffer.Length) { value = Unsafe.As(ref MemoryMarshal.GetReference(buffer)); return true; } value = default; return false; } public T Read(ulong address) where T : unmanaged { Read(address, out T result); return result; } public bool ReadPointer(ulong address, out ulong value) { Span buffer = stackalloc byte[IntPtr.Size]; if (Read(address, buffer) == IntPtr.Size) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -