| File: _generated\170\Microsoft_Diagnostics_DataContractReader_Data.ReadyToRunSection.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>ReadyToRunSection</c> type.</summary> partial class ReadyToRunSection : global::Microsoft.Diagnostics.DataContractReader.Data.IReadableData { private static readonly string[] _typeNames = new[] { "ReadyToRunSection" }; [UsesDataDescriptorTypeSize] public static uint GetSize(Target target) => checked((uint)LayoutSet.Resolve(target, _typeNames).InstanceSize); [DataDescriptorDependency("Type", "uint32")] public static int GetTypeOffset(Target target) { LayoutSet layouts = LayoutSet.Resolve(target, _typeNames); layouts.Select(default, out var type, out _, out var name, "Type"); return type.Fields[name].Offset; } [DataDescriptorDependency("Section", "ImageDataDirectory")] public static int GetSectionOffset(Target target) { LayoutSet layouts = LayoutSet.Resolve(target, _typeNames); layouts.Select(default, out var type, out _, out var name, "Section"); 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 ReadyToRunSection(Target target, TargetPointer address) { Address = address; _target = target; _layouts = LayoutSet.Resolve(target, _typeNames); OnInit(target, address); } static ReadyToRunSection IData<ReadyToRunSection>.Create(Target target, TargetPointer address) => new ReadyToRunSection(target, address); private uint _Type__value = default!; private bool _Type__read; [DataDescriptorDependency("Type", "uint32")] public partial uint Type { get { if (!_Type__read) { _layouts.Select(Address, out var t, out var b, out var n, "Type"); _Type__value = _target.ReadField<uint>(b, t, n); _Type__read = true; } return _Type__value; } } private Data.ImageDataDirectory _Section__value = default!; private bool _Section__read; [DataDescriptorDependency("Section", "ImageDataDirectory")] public partial Data.ImageDataDirectory Section { get { if (!_Section__read) { _layouts.Select(Address, out var t, out var b, out var n, "Section"); _Section__value = _target.ReadDataField<Data.ImageDataDirectory>(b, t, n); _Section__read = true; } return _Section__value; } } [DataDescriptorDependency("Type", "uint32")] [DataDescriptorDependency("Section", "ImageDataDirectory")] void global::Microsoft.Diagnostics.DataContractReader.Data.IReadableData.EnsureAllFieldsRead() { _ = Type; _ = Section; } }