File: _generated\21\Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugMutableDataTarget.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*, int*, int> GetPlatform_3;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, byte*, uint, uint*, int> ReadVirtual_4;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint, uint, byte*, int> GetThreadContext_5;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, byte*, uint, int> WriteVirtual_6;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint, byte*, int> SetThreadContext_7;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint, int> ContinueStatusChanged_8;
}

file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([86, 167, 184, 161, 182, 60, 203, 76, 151, 159, 61, 249, 153, 103, 58, 89]);
    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.ICorDebugMutableDataTarget
{
    [global::System.Runtime.CompilerServices.FixedAddressValueTypeAttribute]
    public static readonly InterfaceImplementationVtable Vtable;

    static InterfaceImplementation()
    {
        global::System.Runtime.InteropServices.NativeMemory.Copy(
            global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugDataTarget).TypeHandle).ManagedVirtualMethodTable,
            global::System.Runtime.CompilerServices.Unsafe.AsPointer(ref Vtable),
            (nuint)(sizeof(void*) * 6));

        Vtable.WriteVirtual_6 = &ABI_WriteVirtual;
        Vtable.SetThreadContext_7 = &ABI_SetThreadContext;
        Vtable.ContinueStatusChanged_8 = &ABI_ContinueStatusChanged;
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.36018")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugMutableDataTarget.WriteVirtual(ulong address, byte* pBuffer, uint bytesRequested)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugMutableDataTarget));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, byte*, uint, int> )__vtable[6]);
        {
            int __retVal;
            {
                __retVal = __target(__this, address, pBuffer, bytesRequested);
            }
    
            // 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_WriteVirtual(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong address, byte* pBuffer, uint bytesRequested)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugMutableDataTarget @this = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugMutableDataTarget>(__this_native);
            __retVal = @this.WriteVirtual(address, pBuffer, bytesRequested);
        }
        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.ICorDebugMutableDataTarget.SetThreadContext(uint threadId, uint contextSize, byte* pContext)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugMutableDataTarget));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint, byte*, int> )__vtable[7]);
        {
            int __retVal;
            {
                __retVal = __target(__this, threadId, contextSize, pContext);
            }
    
            // 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_SetThreadContext(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint threadId, uint contextSize, byte* pContext)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugMutableDataTarget @this = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugMutableDataTarget>(__this_native);
            __retVal = @this.SetThreadContext(threadId, contextSize, pContext);
        }
        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.ICorDebugMutableDataTarget.ContinueStatusChanged(uint threadId, uint continueStatus)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugMutableDataTarget));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint, int> )__vtable[8]);
        {
            int __retVal;
            {
                __retVal = __target(__this, threadId, continueStatus);
            }
    
            // 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_ContinueStatusChanged(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint threadId, uint continueStatus)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugMutableDataTarget @this = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugMutableDataTarget>(__this_native);
            __retVal = @this.ContinueStatusChanged(threadId, continueStatus);
        }
        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.ICorDebugMutableDataTarget.GetPlatform(int* pTargetPlatform)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugMutableDataTarget));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, int*, int> )__vtable[3]);
        {
            int __retVal;
            {
                __retVal = __target(__this, pTargetPlatform);
            }
    
            // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
            global::System.GC.KeepAlive(this);
            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.ICorDebugMutableDataTarget.ReadVirtual(ulong address, byte* pBuffer, uint bytesRequested, uint* pBytesRead)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugMutableDataTarget));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, byte*, uint, uint*, int> )__vtable[4]);
        {
            int __retVal;
            {
                __retVal = __target(__this, address, pBuffer, bytesRequested, pBytesRead);
            }
    
            // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
            global::System.GC.KeepAlive(this);
            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.ICorDebugMutableDataTarget.GetThreadContext(uint threadId, uint contextFlags, uint contextSize, byte* pContext)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugMutableDataTarget));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint, uint, byte*, int> )__vtable[5]);
        {
            int __retVal;
            {
                __retVal = __target(__this, threadId, contextFlags, contextSize, pContext);
            }
    
            // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
            global::System.GC.KeepAlive(this);
            return __retVal;
        }
    }

    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugDataTarget.GetPlatform(int* pTargetPlatform) => throw new global::System.Diagnostics.UnreachableException();

    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugDataTarget.ReadVirtual(ulong address, byte* pBuffer, uint bytesRequested, uint* pBytesRead) => throw new global::System.Diagnostics.UnreachableException();

    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugDataTarget.GetThreadContext(uint threadId, uint contextFlags, uint contextSize, byte* pContext) => throw new global::System.Diagnostics.UnreachableException();
}

namespace Microsoft.Diagnostics.DataContractReader.Legacy
{
    [global::System.Runtime.InteropServices.Marshalling.IUnknownDerivedAttribute<InterfaceInformation, InterfaceImplementation>]
    public unsafe partial interface ICorDebugMutableDataTarget
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.36018")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        [global::System.Runtime.InteropServices.PreserveSigAttribute()]
        new int GetPlatform(int* pTargetPlatform) => ((global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugDataTarget)this).GetPlatform(pTargetPlatform);
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.36018")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        [global::System.Runtime.InteropServices.PreserveSigAttribute()]
        new int ReadVirtual(ulong address, byte* pBuffer, uint bytesRequested, uint* pBytesRead) => ((global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugDataTarget)this).ReadVirtual(address, pBuffer, bytesRequested, pBytesRead);
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.36018")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        [global::System.Runtime.InteropServices.PreserveSigAttribute()]
        new int GetThreadContext(uint threadId, uint contextFlags, uint contextSize, byte* pContext) => ((global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugDataTarget)this).GetThreadContext(threadId, contextFlags, contextSize, pContext);
    }
}