File: _generated\54\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18.cs
Web Access
Project: src\runtime\src\native\managed\cdac\Microsoft.Diagnostics.DataContractReader.Legacy\Microsoft.Diagnostics.DataContractReader.Legacy.csproj (Microsoft.Diagnostics.DataContractReader.Legacy)
// <auto-generated />
#pragma warning disable CS0612, CS0618, CS0649, CS1591

[global::System.Runtime.InteropServices.StructLayoutAttribute(global::System.Runtime.InteropServices.LayoutKind.Sequential)]
file unsafe struct InterfaceImplementationVtable
{
    public delegate* unmanaged[MemberFunction]<void*, global::System.Guid*, void**, int> QueryInterface_0;
    public delegate* unmanaged[MemberFunction]<void*, uint> AddRef_1;
    public delegate* unmanaged[MemberFunction]<void*, uint> Release_2;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoHeader*, int> GetGCInfoHeader_3;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, uint, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange*, uint*, int> GetGCInfoInterruptibleRanges_4;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, uint, uint*, uint*, int> GetGCInfoSafePoints_5;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, uint, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime*, uint*, int> GetGCInfoSlotLifetimes_6;
}

file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([91, 249, 204, 61, 162, 188, 238, 64, 139, 131, 216, 215, 87, 74, 29, 240]);
    public static void** ManagedVirtualMethodTable => (void**)global::System.Runtime.CompilerServices.Unsafe.AsPointer(in InterfaceImplementation.Vtable);
}

[global::System.Runtime.InteropServices.DynamicInterfaceCastableImplementationAttribute]
file unsafe interface InterfaceImplementation : global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18
{
    [global::System.Runtime.CompilerServices.FixedAddressValueTypeAttribute]
    public static readonly InterfaceImplementationVtable Vtable;

    static InterfaceImplementation()
    {
        global::System.Runtime.InteropServices.ComWrappers.GetIUnknownImpl(
            out *(nint*)&((InterfaceImplementationVtable*)global::System.Runtime.CompilerServices.Unsafe.AsPointer(ref Vtable))->QueryInterface_0,
            out *(nint*)&((InterfaceImplementationVtable*)global::System.Runtime.CompilerServices.Unsafe.AsPointer(ref Vtable))->AddRef_1,
            out *(nint*)&((InterfaceImplementationVtable*)global::System.Runtime.CompilerServices.Unsafe.AsPointer(ref Vtable))->Release_2);

        Vtable.GetGCInfoHeader_3 = &ABI_GetGCInfoHeader;
        Vtable.GetGCInfoInterruptibleRanges_4 = &ABI_GetGCInfoInterruptibleRanges;
        Vtable.GetGCInfoSafePoints_5 = &ABI_GetGCInfoSafePoints;
        Vtable.GetGCInfoSlotLifetimes_6 = &ABI_GetGCInfoSlotLifetimes;
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.36018")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18.GetGCInfoHeader(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress ip, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoHeader* header)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoHeader*, int> )__vtable[3]);
        {
            ulong __ip_native;
            int __retVal;
            // Marshal - Convert managed data to native data.
            __ip_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(ip);
            {
                __retVal = __target(__this, __ip_native, header);
            }
    
            // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
            global::System.GC.KeepAlive(this);
            return __retVal;
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static int ABI_GetGCInfoHeader(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __ip_native, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoHeader* header)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18 @this = default;
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress ip = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            ip = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__ip_native);
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18>(__this_native);
            __retVal = @this.GetGCInfoHeader(ip, header);
        }
        catch (global::System.Exception __exception)
        {
            __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
        }
    
        return __retVal;
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.36018")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18.GetGCInfoInterruptibleRanges(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress ip, uint count, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange[] ranges, uint* pNeeded)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, uint, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange*, uint*, int> )__vtable[4]);
        {
            ulong __ip_native;
            int __retVal;
            // Marshal - Convert managed data to native data.
            __ip_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(ip);
            // Pin - Pin data in preparation for calling the P/Invoke.
            fixed (void* __ranges_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange>.ManagedToUnmanagedIn.GetPinnableReference(ranges))
            {
                __retVal = __target(__this, __ip_native, count, (global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange*)__ranges_native, pNeeded);
            }
    
            // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
            global::System.GC.KeepAlive(this);
            return __retVal;
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static int ABI_GetGCInfoInterruptibleRanges(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __ip_native, uint count, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange* __ranges_native, uint* pNeeded)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18 @this = default;
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress ip = default;
        global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange[] ranges = default;
        int __retVal = default;
        // Setup - Perform required setup.
        int __ranges_native__numElements;
        __ranges_native__numElements = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            __ranges_native__numElements = checked((int)(count));
            ranges = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange>.AllocateContainerForManagedElements(__ranges_native, __ranges_native__numElements);
            global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange>.GetUnmanagedValuesSource(__ranges_native, __ranges_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange>.GetManagedValuesDestination(ranges));
            ip = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__ip_native);
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18>(__this_native);
            __retVal = @this.GetGCInfoInterruptibleRanges(ip, count, ranges, pNeeded);
            // Marshal - Convert managed data to native data.
            global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange>.GetManagedValuesDestination(ranges).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange>.GetUnmanagedValuesSource(__ranges_native, __ranges_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange>.GetUnmanagedValuesSource(__ranges_native, __ranges_native__numElements).Length));
        }
        catch (global::System.Exception __exception)
        {
            __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
        }
    
        return __retVal;
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.36018")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18.GetGCInfoSafePoints(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress ip, uint count, uint[] offsets, uint* pNeeded)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, uint, uint*, uint*, int> )__vtable[5]);
        {
            ulong __ip_native;
            int __retVal;
            // Marshal - Convert managed data to native data.
            __ip_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(ip);
            // Pin - Pin data in preparation for calling the P/Invoke.
            fixed (void* __offsets_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.ManagedToUnmanagedIn.GetPinnableReference(offsets))
            {
                __retVal = __target(__this, __ip_native, count, (uint*)__offsets_native, pNeeded);
            }
    
            // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
            global::System.GC.KeepAlive(this);
            return __retVal;
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static int ABI_GetGCInfoSafePoints(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __ip_native, uint count, uint* __offsets_native, uint* pNeeded)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18 @this = default;
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress ip = default;
        uint[] offsets = default;
        int __retVal = default;
        // Setup - Perform required setup.
        int __offsets_native__numElements;
        __offsets_native__numElements = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            __offsets_native__numElements = checked((int)(count));
            offsets = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.AllocateContainerForManagedElements(__offsets_native, __offsets_native__numElements);
            global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__offsets_native, __offsets_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetManagedValuesDestination(offsets));
            ip = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__ip_native);
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18>(__this_native);
            __retVal = @this.GetGCInfoSafePoints(ip, count, offsets, pNeeded);
            // Marshal - Convert managed data to native data.
            global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetManagedValuesDestination(offsets).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__offsets_native, __offsets_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__offsets_native, __offsets_native__numElements).Length));
        }
        catch (global::System.Exception __exception)
        {
            __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
        }
    
        return __retVal;
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.36018")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18.GetGCInfoSlotLifetimes(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress ip, uint count, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime[] lifetimes, uint* pNeeded)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, uint, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime*, uint*, int> )__vtable[6]);
        {
            ulong __ip_native;
            int __retVal;
            // Marshal - Convert managed data to native data.
            __ip_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(ip);
            // Pin - Pin data in preparation for calling the P/Invoke.
            fixed (void* __lifetimes_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime>.ManagedToUnmanagedIn.GetPinnableReference(lifetimes))
            {
                __retVal = __target(__this, __ip_native, count, (global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime*)__lifetimes_native, pNeeded);
            }
    
            // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
            global::System.GC.KeepAlive(this);
            return __retVal;
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static int ABI_GetGCInfoSlotLifetimes(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __ip_native, uint count, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime* __lifetimes_native, uint* pNeeded)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18 @this = default;
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress ip = default;
        global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime[] lifetimes = default;
        int __retVal = default;
        // Setup - Perform required setup.
        int __lifetimes_native__numElements;
        __lifetimes_native__numElements = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            __lifetimes_native__numElements = checked((int)(count));
            lifetimes = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime>.AllocateContainerForManagedElements(__lifetimes_native, __lifetimes_native__numElements);
            global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime>.GetUnmanagedValuesSource(__lifetimes_native, __lifetimes_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime>.GetManagedValuesDestination(lifetimes));
            ip = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__ip_native);
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18>(__this_native);
            __retVal = @this.GetGCInfoSlotLifetimes(ip, count, lifetimes, pNeeded);
            // Marshal - Convert managed data to native data.
            global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime>.GetManagedValuesDestination(lifetimes).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime>.GetUnmanagedValuesSource(__lifetimes_native, __lifetimes_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime>.GetUnmanagedValuesSource(__lifetimes_native, __lifetimes_native__numElements).Length));
        }
        catch (global::System.Exception __exception)
        {
            __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
        }
    
        return __retVal;
    }
}

namespace Microsoft.Diagnostics.DataContractReader.Legacy
{
    [global::System.Runtime.InteropServices.Marshalling.IUnknownDerivedAttribute<InterfaceInformation, InterfaceImplementation>]
    public unsafe partial interface ISOSDacInterface18
    {
    }
}