| File: _generated\196\Microsoft_Diagnostics_DataContractReader_Data.TableSegment.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>TableSegment</c> type.</summary> partial class TableSegment : global::Microsoft.Diagnostics.DataContractReader.Data.IReadableData { private static readonly string[] _typeNames = new[] { "TableSegment" }; [UsesDataDescriptorTypeSize] public static uint GetSize(Target target) => checked((uint)LayoutSet.Resolve(target, _typeNames).InstanceSize); [DataDescriptorDependency("NextSegment", "pointer")] public static int GetNextSegmentOffset(Target target) { LayoutSet layouts = LayoutSet.Resolve(target, _typeNames); layouts.Select(default, out var type, out _, out var name, "NextSegment"); return type.Fields[name].Offset; } [DataDescriptorDependency("RgValue", "pointer")] public static int GetRgValueOffset(Target target) { LayoutSet layouts = LayoutSet.Resolve(target, _typeNames); layouts.Select(default, out var type, out _, out var name, "RgValue"); return type.Fields[name].Offset; } public TargetPointer Address { get; } private readonly Target _target; private readonly LayoutSet _layouts; public TableSegment(Target target, TargetPointer address) { Address = address; _target = target; _layouts = LayoutSet.Resolve(target, _typeNames); } static TableSegment IData<TableSegment>.Create(Target target, TargetPointer address) => new TableSegment(target, address); private TargetPointer _NextSegment__value = default!; private bool _NextSegment__read; [DataDescriptorDependency("NextSegment", "pointer")] public partial TargetPointer NextSegment { get { if (!_NextSegment__read) { _layouts.Select(Address, out var t, out var b, out var n, "NextSegment"); _NextSegment__value = _target.ReadPointerField(b, t, n); _NextSegment__read = true; } return _NextSegment__value; } } private TargetPointer _RgValue__value = default!; private bool _RgValue__read; [DataDescriptorDependency("RgValue", "pointer")] public partial TargetPointer RgValue { get { if (!_RgValue__read) { _layouts.Select(Address, out var t, out var b, out var n, "RgValue"); _RgValue__value = b + (ulong)t.Fields[n].Offset; _RgValue__read = true; } return _RgValue__value; } } [System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1822:Mark members as static", Justification = "Generated lazy initializer; may read instance members.")] private partial byte[] InitRgTail(Target target, TargetPointer address); private byte[] _RgTail__value = default!; private bool _RgTail__read; public partial byte[] RgTail { get { if (!_RgTail__read) { _RgTail__value = InitRgTail(_target, Address); _RgTail__read = true; } return _RgTail__value; } } [System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1822:Mark members as static", Justification = "Generated lazy initializer; may read instance members.")] private partial byte[] InitRgAllocation(Target target, TargetPointer address); private byte[] _RgAllocation__value = default!; private bool _RgAllocation__read; public partial byte[] RgAllocation { get { if (!_RgAllocation__read) { _RgAllocation__value = InitRgAllocation(_target, Address); _RgAllocation__read = true; } return _RgAllocation__value; } } [System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1822:Mark members as static", Justification = "Generated lazy initializer; may read instance members.")] private partial byte[] InitRgUserData(Target target, TargetPointer address); private byte[] _RgUserData__value = default!; private bool _RgUserData__read; public partial byte[] RgUserData { get { if (!_RgUserData__read) { _RgUserData__value = InitRgUserData(_target, Address); _RgUserData__read = true; } return _RgUserData__value; } } void global::Microsoft.Diagnostics.DataContractReader.Data.IReadableData.EnsureAllFieldsRead() { _ = NextSegment; _ = RgValue; _ = RgTail; _ = RgAllocation; _ = RgUserData; } }