File: _generated\24\Microsoft_Diagnostics_DataContractReader_Data.ComWrappersVtablePtrs.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>ComWrappersVtablePtrs</c> type.</summary>
partial class ComWrappersVtablePtrs : global::Microsoft.Diagnostics.DataContractReader.Data.IReadableData
{
    private static readonly string[] _typeNames = new[] { "ComWrappersVtablePtrs" };

    [UsesDataDescriptorTypeSize]
    public static uint GetSize(Target target)
        => checked((uint)LayoutSet.Resolve(target, _typeNames).InstanceSize);

    public TargetPointer Address { get; }

    private readonly Target _target;

    public ComWrappersVtablePtrs(Target target, TargetPointer address)
    {
        Address = address;
        _target = target;
    }

    static ComWrappersVtablePtrs IData<ComWrappersVtablePtrs>.Create(Target target, TargetPointer address)
        => new ComWrappersVtablePtrs(target, address);

    [System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1822:Mark members as static", Justification = "Generated lazy initializer; may read instance members.")]
    private partial System.Collections.Generic.IReadOnlyList<global::Microsoft.Diagnostics.DataContractReader.TargetCodePointer> InitComWrappersInterfacePointers(Target target, TargetPointer address);
    private System.Collections.Generic.IReadOnlyList<global::Microsoft.Diagnostics.DataContractReader.TargetCodePointer> _ComWrappersInterfacePointers__value = default!;
    private bool _ComWrappersInterfacePointers__read;
    public partial System.Collections.Generic.IReadOnlyList<global::Microsoft.Diagnostics.DataContractReader.TargetCodePointer> ComWrappersInterfacePointers
    {
        get
        {
            if (!_ComWrappersInterfacePointers__read)
            {
                _ComWrappersInterfacePointers__value = InitComWrappersInterfacePointers(_target, Address);
                _ComWrappersInterfacePointers__read = true;
            }
            return _ComWrappersInterfacePointers__value;
        }
    }

    void global::Microsoft.Diagnostics.DataContractReader.Data.IReadableData.EnsureAllFieldsRead()
    {
        _ = ComWrappersInterfacePointers;
    }

}