File: Data\EEJitManager.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 EEJitManager : IData<EEJitManager>
{
    static EEJitManager IData<EEJitManager>.Create(Target target, TargetPointer address) => new EEJitManager(target, address);
    public EEJitManager(Target target, TargetPointer address)
    {
        Target.TypeInfo type = target.GetTypeInfo(DataType.EEJitManager);

        StoreRichDebugInfo = target.ReadField<byte>(address, type, nameof(StoreRichDebugInfo)) != 0;
        AllCodeHeaps = target.ReadPointerField(address, type, nameof(AllCodeHeaps));
    }

    public bool StoreRichDebugInfo { get; init; }
    public TargetPointer AllCodeHeaps { get; init; }
}