| File: _generated\56\Microsoft_Diagnostics_DataContractReader_Data.ExceptionLookupTableEntry.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>ExceptionLookupTableEntry</c> type.</summary> partial class ExceptionLookupTableEntry : global::Microsoft.Diagnostics.DataContractReader.Data.IReadableData { private static readonly string[] _typeNames = new[] { "ExceptionLookupTableEntry" }; [UsesDataDescriptorTypeSize] public static uint GetSize(Target target) => checked((uint)LayoutSet.Resolve(target, _typeNames).InstanceSize); [DataDescriptorDependency("MethodStartRVA", "uint32")] public static int GetMethodStartRVAOffset(Target target) { LayoutSet layouts = LayoutSet.Resolve(target, _typeNames); layouts.Select(default, out var type, out _, out var name, "MethodStartRVA"); return type.Fields[name].Offset; } [DataDescriptorDependency("ExceptionInfoRVA", "uint32")] public static int GetExceptionInfoRVAOffset(Target target) { LayoutSet layouts = LayoutSet.Resolve(target, _typeNames); layouts.Select(default, out var type, out _, out var name, "ExceptionInfoRVA"); 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 ExceptionLookupTableEntry(Target target, TargetPointer address) { Address = address; _target = target; _layouts = LayoutSet.Resolve(target, _typeNames); OnInit(target, address); } static ExceptionLookupTableEntry IData<ExceptionLookupTableEntry>.Create(Target target, TargetPointer address) => new ExceptionLookupTableEntry(target, address); private uint _MethodStartRVA__value = default!; private bool _MethodStartRVA__read; [DataDescriptorDependency("MethodStartRVA", "uint32")] public partial uint MethodStartRVA { get { if (!_MethodStartRVA__read) { _layouts.Select(Address, out var t, out var b, out var n, "MethodStartRVA"); _MethodStartRVA__value = _target.ReadField<uint>(b, t, n); _MethodStartRVA__read = true; } return _MethodStartRVA__value; } } private uint _ExceptionInfoRVA__value = default!; private bool _ExceptionInfoRVA__read; [DataDescriptorDependency("ExceptionInfoRVA", "uint32")] public partial uint ExceptionInfoRVA { get { if (!_ExceptionInfoRVA__read) { _layouts.Select(Address, out var t, out var b, out var n, "ExceptionInfoRVA"); _ExceptionInfoRVA__value = _target.ReadField<uint>(b, t, n); _ExceptionInfoRVA__read = true; } return _ExceptionInfoRVA__value; } } [DataDescriptorDependency("MethodStartRVA", "uint32")] [DataDescriptorDependency("ExceptionInfoRVA", "uint32")] void global::Microsoft.Diagnostics.DataContractReader.Data.IReadableData.EnsureAllFieldsRead() { _ = MethodStartRVA; _ = ExceptionInfoRVA; } }