// <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 : global::Microsoft.Diagnostics.DataContractReader.Data.IReadableData
{
private static readonly string[] _typeNames = new[] { "ReadyToRunInfo" };
[UsesDataDescriptorTypeSize]
public static uint GetSize(Target target)
=> checked((uint)LayoutSet.Resolve(target, _typeNames).InstanceSize);
[DataDescriptorDependency("CompositeInfo", "pointer")]
public static int GetCompositeInfoOffset(Target target)
{
LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);
layouts.Select(default, out var type, out _, out var name, "CompositeInfo");
return type.Fields[name].Offset;
}
[DataDescriptorDependency("ReadyToRunHeader", "pointer")]
public static int GetReadyToRunHeaderOffset(Target target)
{
LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);
layouts.Select(default, out var type, out _, out var name, "ReadyToRunHeader");
return type.Fields[name].Offset;
}
[DataDescriptorDependency("NumRuntimeFunctions", "uint32")]
public static int GetNumRuntimeFunctionsOffset(Target target)
{
LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);
layouts.Select(default, out var type, out _, out var name, "NumRuntimeFunctions");
return type.Fields[name].Offset;
}
[DataDescriptorDependency("NumHotColdMap", "uint32")]
public static int GetNumHotColdMapOffset(Target target)
{
LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);
layouts.Select(default, out var type, out _, out var name, "NumHotColdMap");
return type.Fields[name].Offset;
}
[DataDescriptorDependency("DelayLoadMethodCallThunks", "pointer")]
public static int GetDelayLoadMethodCallThunksOffset(Target target)
{
LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);
layouts.Select(default, out var type, out _, out var name, "DelayLoadMethodCallThunks");
return type.Fields[name].Offset;
}
[DataDescriptorDependency("DebugInfoSection", "pointer")]
public static int GetDebugInfoSectionOffset(Target target)
{
LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);
layouts.Select(default, out var type, out _, out var name, "DebugInfoSection");
return type.Fields[name].Offset;
}
[DataDescriptorDependency("ExceptionInfoSection", "pointer")]
public static int GetExceptionInfoSectionOffset(Target target)
{
LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);
layouts.Select(default, out var type, out _, out var name, "ExceptionInfoSection");
return type.Fields[name].Offset;
}
[DataDescriptorDependency("LoadedImageBase", "pointer")]
public static int GetLoadedImageBaseOffset(Target target)
{
LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);
layouts.Select(default, out var type, out _, out var name, "LoadedImageBase");
return type.Fields[name].Offset;
}
[DataDescriptorDependency("Composite", "pointer")]
public static int GetCompositeOffset(Target target)
{
LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);
layouts.Select(default, out var type, out _, out var name, "Composite");
return type.Fields[name].Offset;
}
[DataDescriptorDependency("NumImportSections", "uint32")]
public static int GetNumImportSectionsOffset(Target target)
{
LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);
layouts.Select(default, out var type, out _, out var name, "NumImportSections");
return type.Fields[name].Offset;
}
[DataDescriptorDependency("MinVirtualIP", "pointer")]
public static int GetMinVirtualIPOffset(Target target)
{
LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);
layouts.Select(default, out var type, out _, out var name, "MinVirtualIP");
return type.Fields[name].Offset;
}
public TargetPointer Address { get; }
private readonly Target _target;
private readonly LayoutSet _layouts;
partial void OnInit(Target target, TargetPointer address);
public ReadyToRunInfo(Target target, TargetPointer address)
{
Address = address;
_target = target;
_layouts = LayoutSet.Resolve(target, _typeNames);
OnInit(target, address);
}
static ReadyToRunInfo IData<ReadyToRunInfo>.Create(Target target, TargetPointer address)
=> new ReadyToRunInfo(target, address);
private TargetPointer _CompositeInfo__value = default!;
private bool _CompositeInfo__read;
[DataDescriptorDependency("CompositeInfo", "pointer")]
public partial TargetPointer CompositeInfo
{
get
{
if (!_CompositeInfo__read)
{
_layouts.Select(Address, out var t, out var b, out var n, "CompositeInfo");
_CompositeInfo__value = _target.ReadPointerField(b, t, n);
_CompositeInfo__read = true;
}
return _CompositeInfo__value;
}
}
private TargetPointer _ReadyToRunHeader__value = default!;
private bool _ReadyToRunHeader__read;
[DataDescriptorDependency("ReadyToRunHeader", "pointer")]
public partial TargetPointer ReadyToRunHeader
{
get
{
if (!_ReadyToRunHeader__read)
{
_layouts.Select(Address, out var t, out var b, out var n, "ReadyToRunHeader");
_ReadyToRunHeader__value = _target.ReadPointerField(b, t, n);
_ReadyToRunHeader__read = true;
}
return _ReadyToRunHeader__value;
}
}
private uint _NumRuntimeFunctions__value = default!;
private bool _NumRuntimeFunctions__read;
[DataDescriptorDependency("NumRuntimeFunctions", "uint32")]
public partial uint NumRuntimeFunctions
{
get
{
if (!_NumRuntimeFunctions__read)
{
_layouts.Select(Address, out var t, out var b, out var n, "NumRuntimeFunctions");
_NumRuntimeFunctions__value = _target.ReadField<uint>(b, t, n);
_NumRuntimeFunctions__read = true;
}
return _NumRuntimeFunctions__value;
}
}
private uint _NumHotColdMap__value = default!;
private bool _NumHotColdMap__read;
[DataDescriptorDependency("NumHotColdMap", "uint32")]
public partial uint NumHotColdMap
{
get
{
if (!_NumHotColdMap__read)
{
_layouts.Select(Address, out var t, out var b, out var n, "NumHotColdMap");
_NumHotColdMap__value = _target.ReadField<uint>(b, t, n);
_NumHotColdMap__read = true;
}
return _NumHotColdMap__value;
}
}
private TargetPointer _DelayLoadMethodCallThunks__value = default!;
private bool _DelayLoadMethodCallThunks__read;
[DataDescriptorDependency("DelayLoadMethodCallThunks", "pointer")]
public partial TargetPointer DelayLoadMethodCallThunks
{
get
{
if (!_DelayLoadMethodCallThunks__read)
{
_layouts.Select(Address, out var t, out var b, out var n, "DelayLoadMethodCallThunks");
_DelayLoadMethodCallThunks__value = _target.ReadPointerField(b, t, n);
_DelayLoadMethodCallThunks__read = true;
}
return _DelayLoadMethodCallThunks__value;
}
}
private TargetPointer _DebugInfoSection__value = default!;
private bool _DebugInfoSection__read;
[DataDescriptorDependency("DebugInfoSection", "pointer")]
public partial TargetPointer DebugInfoSection
{
get
{
if (!_DebugInfoSection__read)
{
_layouts.Select(Address, out var t, out var b, out var n, "DebugInfoSection");
_DebugInfoSection__value = _target.ReadPointerField(b, t, n);
_DebugInfoSection__read = true;
}
return _DebugInfoSection__value;
}
}
private TargetPointer _ExceptionInfoSection__value = default!;
private bool _ExceptionInfoSection__read;
[DataDescriptorDependency("ExceptionInfoSection", "pointer")]
public partial TargetPointer ExceptionInfoSection
{
get
{
if (!_ExceptionInfoSection__read)
{
_layouts.Select(Address, out var t, out var b, out var n, "ExceptionInfoSection");
_ExceptionInfoSection__value = _target.ReadPointerField(b, t, n);
_ExceptionInfoSection__read = true;
}
return _ExceptionInfoSection__value;
}
}
private TargetPointer _LoadedImageBase__value = default!;
private bool _LoadedImageBase__read;
[DataDescriptorDependency("LoadedImageBase", "pointer")]
public partial TargetPointer LoadedImageBase
{
get
{
if (!_LoadedImageBase__read)
{
_layouts.Select(Address, out var t, out var b, out var n, "LoadedImageBase");
_LoadedImageBase__value = _target.ReadPointerField(b, t, n);
_LoadedImageBase__read = true;
}
return _LoadedImageBase__value;
}
}
private TargetPointer _Composite__value = default!;
private bool _Composite__read;
[DataDescriptorDependency("Composite", "pointer")]
public partial TargetPointer Composite
{
get
{
if (!_Composite__read)
{
_layouts.Select(Address, out var t, out var b, out var n, "Composite");
_Composite__value = _target.ReadPointerField(b, t, n);
_Composite__read = true;
}
return _Composite__value;
}
}
private uint _NumImportSections__value = default!;
private bool _NumImportSections__read;
[DataDescriptorDependency("NumImportSections", "uint32")]
public partial uint NumImportSections
{
get
{
if (!_NumImportSections__read)
{
_layouts.Select(Address, out var t, out var b, out var n, "NumImportSections");
_NumImportSections__value = _target.ReadField<uint>(b, t, n);
_NumImportSections__read = true;
}
return _NumImportSections__value;
}
}
private TargetPointer? _MinVirtualIP__value = default!;
private bool _MinVirtualIP__read;
[DataDescriptorDependency("MinVirtualIP", "pointer")]
public partial TargetPointer? MinVirtualIP
{
get
{
if (!_MinVirtualIP__read)
{
if (_layouts.TrySelect(Address, out var t, out var b, out var n, "MinVirtualIP"))
_MinVirtualIP__value = _target.ReadPointerField(b, t, n);
else
_MinVirtualIP__value = default(TargetPointer?);
_MinVirtualIP__read = true;
}
return _MinVirtualIP__value;
}
}
[DataDescriptorDependency("CompositeInfo", "pointer")]
[DataDescriptorDependency("ReadyToRunHeader", "pointer")]
[DataDescriptorDependency("NumRuntimeFunctions", "uint32")]
[DataDescriptorDependency("NumHotColdMap", "uint32")]
[DataDescriptorDependency("DelayLoadMethodCallThunks", "pointer")]
[DataDescriptorDependency("DebugInfoSection", "pointer")]
[DataDescriptorDependency("ExceptionInfoSection", "pointer")]
[DataDescriptorDependency("LoadedImageBase", "pointer")]
[DataDescriptorDependency("Composite", "pointer")]
[DataDescriptorDependency("NumImportSections", "uint32")]
[DataDescriptorDependency("MinVirtualIP", "pointer")]
void global::Microsoft.Diagnostics.DataContractReader.Data.IReadableData.EnsureAllFieldsRead()
{
_ = CompositeInfo;
_ = ReadyToRunHeader;
_ = NumRuntimeFunctions;
_ = NumHotColdMap;
_ = DelayLoadMethodCallThunks;
_ = DebugInfoSection;
_ = ExceptionInfoSection;
_ = LoadedImageBase;
_ = Composite;
_ = NumImportSections;
_ = MinVirtualIP;
}
}