| File: Generated\361d1da7f942c932\Microsoft_Diagnostics_DataContractReader_Data.TLSIndex.g.cs | |
| Project: 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>TLSIndex</c> type.</summary> partial class TLSIndex { private static readonly string[] _typeNames = new[] { "TLSIndex" }; [UsesDataDescriptorTypeSize] public static uint GetSize(Target target) => checked((uint)TypeLayout.Resolve(target, _typeNames).InstanceSize); [DataDescriptorDependency("TLSIndexRawIndex", "uint32")] public static int GetTLSIndexRawIndexOffset(Target target) { TypeLayout layout = TypeLayout.Resolve(target, _typeNames); layout.Select(default, out var type, out _, out var name, "TLSIndexRawIndex"); return type.Fields[name].Offset; } public TargetPointer Address { get; } private readonly Target _target; private readonly TypeLayout _layout; public TLSIndex(Target target, TargetPointer address) { Address = address; _target = target; _layout = TypeLayout.Resolve(target, _typeNames); } static TLSIndex IData<TLSIndex>.Create(Target target, TargetPointer address) => new TLSIndex(target, address); private uint _TLSIndexRawIndex__value = default!; private bool _TLSIndexRawIndex__read; [DataDescriptorDependency("TLSIndexRawIndex", "uint32")] public partial uint TLSIndexRawIndex { get { if (!_TLSIndexRawIndex__read) { _layout.Select(Address, out var t, out var b, out var n, "TLSIndexRawIndex"); _TLSIndexRawIndex__value = _target.ReadField<uint>(b, t, n); _TLSIndexRawIndex__read = true; } return _TLSIndexRawIndex__value; } } [DataDescriptorDependency("TLSIndexRawIndex", "uint32")] internal bool TryReadAllFields() { try { _ = TLSIndexRawIndex; return true; } catch (VirtualReadException) { return false; } } }