File: Generated\361d1da7f942c932\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface11.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.Interop.BOOL*, global::Microsoft.Diagnostics.DataContractReader.Legacy.Interop.BOOL*, int> IsTrackedType_3;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, nuint*, int> GetTaggedMemory_4;
}
 
file sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([185, 29, 186, 150, 205, 20, 146, 68, 128, 101, 28, 170, 236, 246, 229, 207]);
    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.ISOSDacInterface11
{
    [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.IsTrackedType_3 = &ABI_IsTrackedType;
            Vtable.GetTaggedMemory_4 = &ABI_GetTaggedMemory;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface11.IsTrackedType(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress objAddr, global::Microsoft.Diagnostics.DataContractReader.Legacy.Interop.BOOL* isTrackedType, global::Microsoft.Diagnostics.DataContractReader.Legacy.Interop.BOOL* hasTaggedMemory)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface11));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.Interop.BOOL*, global::Microsoft.Diagnostics.DataContractReader.Legacy.Interop.BOOL*, int>)__vtable[3]);
            {
                ulong __objAddr_native;
                int __retVal;
                // Marshal - Convert managed data to native data.
                __objAddr_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(objAddr);
                {
                    __retVal = __target(__this, __objAddr_native, isTrackedType, hasTaggedMemory);
                }
                // 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_IsTrackedType(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __objAddr_native, global::Microsoft.Diagnostics.DataContractReader.Legacy.Interop.BOOL* isTrackedType, global::Microsoft.Diagnostics.DataContractReader.Legacy.Interop.BOOL* hasTaggedMemory)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface11 @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress objAddr = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                objAddr = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__objAddr_native);
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface11>(__this_native);
                __retVal = @this.IsTrackedType(objAddr, isTrackedType, hasTaggedMemory);
            }
            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.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface11.GetTaggedMemory(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress objAddr, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* taggedMemory, nuint* taggedMemorySizeInBytes)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface11));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, nuint*, int>)__vtable[4]);
            {
                ulong __objAddr_native;
                int __retVal;
                // Marshal - Convert managed data to native data.
                __objAddr_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(objAddr);
                {
                    __retVal = __target(__this, __objAddr_native, taggedMemory, taggedMemorySizeInBytes);
                }
                // 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_GetTaggedMemory(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __objAddr_native, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* taggedMemory, nuint* taggedMemorySizeInBytes)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface11 @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress objAddr = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                objAddr = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__objAddr_native);
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface11>(__this_native);
                __retVal = @this.GetTaggedMemory(objAddr, taggedMemory, taggedMemorySizeInBytes);
            }
            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 ISOSDacInterface11
    {
    }
}