File: Data\AuxiliarySymbolInfo.cs
Web Access
Project: src\src\runtime\src\native\managed\cdac\Microsoft.Diagnostics.DataContractReader.Contracts\Microsoft.Diagnostics.DataContractReader.Contracts.csproj (Microsoft.Diagnostics.DataContractReader.Contracts)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace Microsoft.Diagnostics.DataContractReader.Data;

internal sealed class AuxiliarySymbolInfo : IData<AuxiliarySymbolInfo>
{
    static AuxiliarySymbolInfo IData<AuxiliarySymbolInfo>.Create(Target target, TargetPointer address)
        => new AuxiliarySymbolInfo(target, address);

    public AuxiliarySymbolInfo(Target target, TargetPointer address)
    {
        Target.TypeInfo type = target.GetTypeInfo(DataType.AuxiliarySymbolInfo);

        Address = target.ReadCodePointerField(address, type, nameof(Address));
        Name = target.ReadPointerField(address, type, nameof(Name));
    }

    public TargetCodePointer Address { get; init; }
    public TargetPointer Name { get; init; }
}