File: Data\InterpMethodContextFrame.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 InterpMethodContextFrame : IData<InterpMethodContextFrame>
{
    static InterpMethodContextFrame IData<InterpMethodContextFrame>.Create(Target target, TargetPointer address)
        => new InterpMethodContextFrame(target, address);

    public InterpMethodContextFrame(Target target, TargetPointer address)
    {
        Target.TypeInfo type = target.GetTypeInfo(DataType.InterpMethodContextFrame);
        StartIp = target.ReadPointerField(address, type, nameof(StartIp));
        ParentPtr = target.ReadPointerField(address, type, nameof(ParentPtr));
        Ip = target.ReadPointerField(address, type, nameof(Ip));
        NextPtr = target.ReadPointerField(address, type, nameof(NextPtr));
        Stack = target.ReadPointerField(address, type, nameof(Stack));
    }

    public TargetPointer StartIp { get; init; }
    public TargetPointer ParentPtr { get; init; }
    public TargetPointer Ip { get; init; }
    public TargetPointer NextPtr { get; init; }
    public TargetPointer Stack { get; init; }
}