File: Generated\361d1da7f942c932\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface19.cs
Project: 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 struct InterfaceImplementationVtable
{
    public unsafe delegate* unmanaged[MemberFunction]<void*, global::System.Guid*, void**, int> QueryInterface_0;
    public unsafe delegate* unmanaged[MemberFunction]<void*, uint> AddRef_1;
    public unsafe delegate* unmanaged[MemberFunction]<void*, uint> Release_2;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Header*, int> GetGCInfoX86Header_3;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, uint, uint*, uint*, int> GetGCInfoX86Epilogs_4;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, uint, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition*, uint*, int> GetGCInfoX86Transitions_5;
}
 
file sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([76, 45, 62, 181, 18, 27, 87, 77, 153, 89, 239, 5, 168, 115, 103, 138]);
    public static unsafe void** ManagedVirtualMethodTable
    {
        get
        {
            unsafe
            {
                return (void**)global::System.Runtime.CompilerServices.Unsafe.AsPointer(in InterfaceImplementation.Vtable);
            }
        }
    }
}
 
[global::System.Runtime.InteropServices.DynamicInterfaceCastableImplementationAttribute]
file unsafe interface InterfaceImplementation : global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface19
{
    [global::System.Runtime.CompilerServices.FixedAddressValueTypeAttribute]
    public static readonly InterfaceImplementationVtable Vtable;
 
    static InterfaceImplementation()
    {
        unsafe
        {
            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.GetGCInfoX86Header_3 = &ABI_GetGCInfoX86Header;
            Vtable.GetGCInfoX86Epilogs_4 = &ABI_GetGCInfoX86Epilogs;
            Vtable.GetGCInfoX86Transitions_5 = &ABI_GetGCInfoX86Transitions;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.15.5802")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface19.GetGCInfoX86Header(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress ip, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Header* header)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface19));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Header*, 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 unsafe int ABI_GetGCInfoX86Header(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __ip_native, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Header* header)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface19 @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.ISOSDacInterface19>(__this_native);
                __retVal = @this.GetGCInfoX86Header(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", "12.0.15.5802")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface19.GetGCInfoX86Epilogs(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress ip, uint count, uint[] offsets, uint* pNeeded)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface19));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, uint, uint*, 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* __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 unsafe int ABI_GetGCInfoX86Epilogs(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __ip_native, uint count, uint* __offsets_native, uint* pNeeded)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface19 @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.ISOSDacInterface19>(__this_native);
                __retVal = @this.GetGCInfoX86Epilogs(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", "12.0.15.5802")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface19.GetGCInfoX86Transitions(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress ip, uint count, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition[] transitions, uint* pNeeded)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface19));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, uint, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition*, 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* __transitions_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition>.ManagedToUnmanagedIn.GetPinnableReference(transitions))
                {
                    __retVal = __target(__this, __ip_native, count, (global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition*)__transitions_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 unsafe int ABI_GetGCInfoX86Transitions(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __ip_native, uint count, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition* __transitions_native, uint* pNeeded)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface19 @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress ip = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition[] transitions = default;
            int __retVal = default;
            // Setup - Perform required setup.
            int __transitions_native__numElements;
            __transitions_native__numElements = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                __transitions_native__numElements = checked((int)(count));
                transitions = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition>.AllocateContainerForManagedElements(__transitions_native, __transitions_native__numElements);
                global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition>.GetUnmanagedValuesSource(__transitions_native, __transitions_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition>.GetManagedValuesDestination(transitions));
                ip = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__ip_native);
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface19>(__this_native);
                __retVal = @this.GetGCInfoX86Transitions(ip, count, transitions, pNeeded);
                // Marshal - Convert managed data to native data.
                global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition>.GetManagedValuesDestination(transitions).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.SOSGCInfoX86Transition, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition>.GetUnmanagedValuesSource(__transitions_native, __transitions_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCInfoX86Transition>.GetUnmanagedValuesSource(__transitions_native, __transitions_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 ISOSDacInterface19
    {
    }
}