|
// <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>JITNotification</c> type.</summary>
partial class JITNotification
{
private static readonly string[] _typeNames = new[] { "JITNotification" };
public TargetPointer Address { get; }
private readonly Target _target;
partial void OnInit(Target target, TargetPointer address);
public JITNotification(Target target, TargetPointer address)
{
Address = address;
_target = target;
LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);
{
layouts.Select(address, out var t, out var b, out var n, "State");
State = target.ReadField<ushort>(b, t, n);
}
{
layouts.Select(address, out var t, out var b, out var n, "ClrModule");
ClrModule = target.ReadNUIntField(b, t, n);
}
{
layouts.Select(address, out var t, out var b, out var n, "MethodToken");
MethodToken = target.ReadField<uint>(b, t, n);
}
OnInit(target, address);
}
static JITNotification IData<JITNotification>.Create(Target target, TargetPointer address)
=> new JITNotification(target, address);
public void WriteState(ushort value)
{
LayoutSet layouts = LayoutSet.Resolve(_target, _typeNames);
layouts.Select(Address, out var t, out var b, out var n, "State");
_target.WriteField<ushort>(b, t, n, value);
State = value;
}
public void WriteClrModule(TargetNUInt value)
{
LayoutSet layouts = LayoutSet.Resolve(_target, _typeNames);
layouts.Select(Address, out var t, out var b, out var n, "ClrModule");
_target.WriteNUIntField(b, t, n, value);
ClrModule = value;
}
public void WriteMethodToken(uint value)
{
LayoutSet layouts = LayoutSet.Resolve(_target, _typeNames);
layouts.Select(Address, out var t, out var b, out var n, "MethodToken");
_target.WriteField<uint>(b, t, n, value);
MethodToken = value;
}
}
|