| File: _generated\115\Microsoft_Diagnostics_DataContractReader_Data.InterpreterRealCodeHeader.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>InterpreterRealCodeHeader</c> type.</summary> partial class InterpreterRealCodeHeader : global::Microsoft.Diagnostics.DataContractReader.Data.IReadableData { private static readonly string[] _typeNames = new[] { "InterpreterRealCodeHeader" }; [UsesDataDescriptorTypeSize] public static uint GetSize(Target target) => checked((uint)LayoutSet.Resolve(target, _typeNames).InstanceSize); [DataDescriptorDependency("MethodDesc", "pointer")] public static int GetMethodDescOffset(Target target) { LayoutSet layouts = LayoutSet.Resolve(target, _typeNames); layouts.Select(default, out var type, out _, out var name, "MethodDesc"); return type.Fields[name].Offset; } [DataDescriptorDependency("DebugInfo", "pointer")] public static int GetDebugInfoOffset(Target target) { LayoutSet layouts = LayoutSet.Resolve(target, _typeNames); layouts.Select(default, out var type, out _, out var name, "DebugInfo"); return type.Fields[name].Offset; } [DataDescriptorDependency("GCInfo", "pointer")] public static int GetGCInfoOffset(Target target) { LayoutSet layouts = LayoutSet.Resolve(target, _typeNames); layouts.Select(default, out var type, out _, out var name, "GCInfo"); return type.Fields[name].Offset; } public TargetPointer Address { get; } private readonly Target _target; private readonly LayoutSet _layouts; public InterpreterRealCodeHeader(Target target, TargetPointer address) { Address = address; _target = target; _layouts = LayoutSet.Resolve(target, _typeNames); } static InterpreterRealCodeHeader IData<InterpreterRealCodeHeader>.Create(Target target, TargetPointer address) => new InterpreterRealCodeHeader(target, address); private TargetPointer _MethodDesc__value = default!; private bool _MethodDesc__read; [DataDescriptorDependency("MethodDesc", "pointer")] public partial TargetPointer MethodDesc { get { if (!_MethodDesc__read) { _layouts.Select(Address, out var t, out var b, out var n, "MethodDesc"); _MethodDesc__value = _target.ReadPointerField(b, t, n); _MethodDesc__read = true; } return _MethodDesc__value; } } private TargetPointer _DebugInfo__value = default!; private bool _DebugInfo__read; [DataDescriptorDependency("DebugInfo", "pointer")] public partial TargetPointer DebugInfo { get { if (!_DebugInfo__read) { _layouts.Select(Address, out var t, out var b, out var n, "DebugInfo"); _DebugInfo__value = _target.ReadPointerField(b, t, n); _DebugInfo__read = true; } return _DebugInfo__value; } } private TargetPointer _GCInfo__value = default!; private bool _GCInfo__read; [DataDescriptorDependency("GCInfo", "pointer")] public partial TargetPointer GCInfo { get { if (!_GCInfo__read) { _layouts.Select(Address, out var t, out var b, out var n, "GCInfo"); _GCInfo__value = _target.ReadPointerField(b, t, n); _GCInfo__read = true; } return _GCInfo__value; } } [System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1822:Mark members as static", Justification = "Generated lazy initializer; may read instance members.")] private partial Data.EEILException? InitJitEHInfo(Target target, TargetPointer address); private Data.EEILException? _JitEHInfo__value = default!; private bool _JitEHInfo__read; public partial Data.EEILException? JitEHInfo { get { if (!_JitEHInfo__read) { _JitEHInfo__value = InitJitEHInfo(_target, Address); _JitEHInfo__read = true; } return _JitEHInfo__value; } } void global::Microsoft.Diagnostics.DataContractReader.Data.IReadableData.EnsureAllFieldsRead() { _ = MethodDesc; _ = DebugInfo; _ = GCInfo; _ = JitEHInfo; } }