File: _generated\140\Microsoft_Diagnostics_DataContractReader_Data.ReadyToRunInfo.g.cs
Web Access
Project: src\runtime\src\native\managed\cdac\Microsoft.Diagnostics.DataContractReader.Contracts\Microsoft.Diagnostics.DataContractReader.Contracts.csproj (Microsoft.Diagnostics.DataContractReader.Contracts)
// <auto-generated/>
#nullable enable

using Microsoft.Diagnostics.DataContractReader;
using Microsoft.Diagnostics.DataContractReader.Contracts;
using Microsoft.Diagnostics.DataContractReader.Generated;

namespace Microsoft.Diagnostics.DataContractReader.Data;

/// <summary>Wraps the <c>ReadyToRunInfo</c> type.</summary>
partial class ReadyToRunInfo
{
    private static readonly string[] _typeNames = new[] { "ReadyToRunInfo" };

    public TargetPointer Address { get; }

    partial void OnInit(Target target, TargetPointer address);

    public ReadyToRunInfo(Target target, TargetPointer address)
    {
        Address = address;

        LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);

        {
            layouts.Select(address, out var t, out var b, out var n, "CompositeInfo");
            CompositeInfo = target.ReadPointerField(b, t, n);
        }
        {
            layouts.Select(address, out var t, out var b, out var n, "ReadyToRunHeader");
            ReadyToRunHeader = target.ReadPointerField(b, t, n);
        }
        {
            layouts.Select(address, out var t, out var b, out var n, "NumRuntimeFunctions");
            NumRuntimeFunctions = target.ReadField<uint>(b, t, n);
        }
        {
            layouts.Select(address, out var t, out var b, out var n, "NumHotColdMap");
            NumHotColdMap = target.ReadField<uint>(b, t, n);
        }
        {
            layouts.Select(address, out var t, out var b, out var n, "DelayLoadMethodCallThunks");
            DelayLoadMethodCallThunks = target.ReadPointerField(b, t, n);
        }
        {
            layouts.Select(address, out var t, out var b, out var n, "DebugInfoSection");
            DebugInfoSection = target.ReadPointerField(b, t, n);
        }
        {
            layouts.Select(address, out var t, out var b, out var n, "ExceptionInfoSection");
            ExceptionInfoSection = target.ReadPointerField(b, t, n);
        }
        {
            layouts.Select(address, out var t, out var b, out var n, "LoadedImageBase");
            LoadedImageBase = target.ReadPointerField(b, t, n);
        }
        {
            layouts.Select(address, out var t, out var b, out var n, "Composite");
            Composite = target.ReadPointerField(b, t, n);
        }
        {
            layouts.Select(address, out var t, out var b, out var n, "NumImportSections");
            NumImportSections = target.ReadField<uint>(b, t, n);
        }

        OnInit(target, address);
    }

    static ReadyToRunInfo IData<ReadyToRunInfo>.Create(Target target, TargetPointer address)
        => new ReadyToRunInfo(target, address);

}