// <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>SystemVEightByteRegistersInfo</c> type.</summary>
partial class SystemVEightByteRegistersInfo
{
private static readonly string[] _typeNames = new[] { "SystemVEightByteRegistersInfo" };
[UsesDataDescriptorTypeSize]
public static uint GetSize(Target target)
=> checked((uint)TypeLayout.Resolve(target, _typeNames).InstanceSize);
[DataDescriptorDependency("NumEightBytes", "uint8")]
public static int GetNumEightBytesOffset(Target target)
{
TypeLayout layout = TypeLayout.Resolve(target, _typeNames);
layout.Select(default, out var type, out _, out var name, "NumEightBytes");
return type.Fields[name].Offset;
}
[DataDescriptorDependency("EightByteClassification0", "uint8")]
public static int GetEightByteClassification0Offset(Target target)
{
TypeLayout layout = TypeLayout.Resolve(target, _typeNames);
layout.Select(default, out var type, out _, out var name, "EightByteClassification0");
return type.Fields[name].Offset;
}
[DataDescriptorDependency("EightByteClassification1", "uint8")]
public static int GetEightByteClassification1Offset(Target target)
{
TypeLayout layout = TypeLayout.Resolve(target, _typeNames);
layout.Select(default, out var type, out _, out var name, "EightByteClassification1");
return type.Fields[name].Offset;
}
[DataDescriptorDependency("EightByteSize0", "uint8")]
public static int GetEightByteSize0Offset(Target target)
{
TypeLayout layout = TypeLayout.Resolve(target, _typeNames);
layout.Select(default, out var type, out _, out var name, "EightByteSize0");
return type.Fields[name].Offset;
}
[DataDescriptorDependency("EightByteSize1", "uint8")]
public static int GetEightByteSize1Offset(Target target)
{
TypeLayout layout = TypeLayout.Resolve(target, _typeNames);
layout.Select(default, out var type, out _, out var name, "EightByteSize1");
return type.Fields[name].Offset;
}
public TargetPointer Address { get; }
private readonly Target _target;
private readonly TypeLayout _layout;
public SystemVEightByteRegistersInfo(Target target, TargetPointer address)
{
Address = address;
_target = target;
_layout = TypeLayout.Resolve(target, _typeNames);
}
static SystemVEightByteRegistersInfo IData<SystemVEightByteRegistersInfo>.Create(Target target, TargetPointer address)
=> new SystemVEightByteRegistersInfo(target, address);
private byte _NumEightBytes__value = default!;
private bool _NumEightBytes__read;
[DataDescriptorDependency("NumEightBytes", "uint8")]
public partial byte NumEightBytes
{
get
{
if (!_NumEightBytes__read)
{
_layout.Select(Address, out var t, out var b, out var n, "NumEightBytes");
_NumEightBytes__value = _target.ReadField<byte>(b, t, n);
_NumEightBytes__read = true;
}
return _NumEightBytes__value;
}
}
private byte _EightByteClassification0__value = default!;
private bool _EightByteClassification0__read;
[DataDescriptorDependency("EightByteClassification0", "uint8")]
public partial byte EightByteClassification0
{
get
{
if (!_EightByteClassification0__read)
{
_layout.Select(Address, out var t, out var b, out var n, "EightByteClassification0");
_EightByteClassification0__value = _target.ReadField<byte>(b, t, n);
_EightByteClassification0__read = true;
}
return _EightByteClassification0__value;
}
}
private byte _EightByteClassification1__value = default!;
private bool _EightByteClassification1__read;
[DataDescriptorDependency("EightByteClassification1", "uint8")]
public partial byte EightByteClassification1
{
get
{
if (!_EightByteClassification1__read)
{
_layout.Select(Address, out var t, out var b, out var n, "EightByteClassification1");
_EightByteClassification1__value = _target.ReadField<byte>(b, t, n);
_EightByteClassification1__read = true;
}
return _EightByteClassification1__value;
}
}
private byte _EightByteSize0__value = default!;
private bool _EightByteSize0__read;
[DataDescriptorDependency("EightByteSize0", "uint8")]
public partial byte EightByteSize0
{
get
{
if (!_EightByteSize0__read)
{
_layout.Select(Address, out var t, out var b, out var n, "EightByteSize0");
_EightByteSize0__value = _target.ReadField<byte>(b, t, n);
_EightByteSize0__read = true;
}
return _EightByteSize0__value;
}
}
private byte _EightByteSize1__value = default!;
private bool _EightByteSize1__read;
[DataDescriptorDependency("EightByteSize1", "uint8")]
public partial byte EightByteSize1
{
get
{
if (!_EightByteSize1__read)
{
_layout.Select(Address, out var t, out var b, out var n, "EightByteSize1");
_EightByteSize1__value = _target.ReadField<byte>(b, t, n);
_EightByteSize1__read = true;
}
return _EightByteSize1__value;
}
}
[DataDescriptorDependency("NumEightBytes", "uint8")]
[DataDescriptorDependency("EightByteClassification0", "uint8")]
[DataDescriptorDependency("EightByteClassification1", "uint8")]
[DataDescriptorDependency("EightByteSize0", "uint8")]
[DataDescriptorDependency("EightByteSize1", "uint8")]
internal bool TryReadAllFields()
{
try
{
_ = NumEightBytes;
_ = EightByteClassification0;
_ = EightByteClassification1;
_ = EightByteSize0;
_ = EightByteSize1;
return true;
}
catch (VirtualReadException)
{
return false;
}
}
}