File: Generated\361d1da7f942c932\Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod.cs
Project: Microsoft.DiaSymReader.csproj (Microsoft.DiaSymReader)
// <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*, int*, int> IsAsyncMethod_3;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int*, int> GetKickoffMethod_4;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int*, int> HasCatchHandlerILOffset_5;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int*, int> GetCatchHandlerILOffset_6;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int*, int> GetAsyncStepInfoCount_7;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int, int*, int*, int*, int*, int> GetAsyncStepInfo_8;
}
 
file sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([179, 85, 13, 178, 46, 83, 6, 73, 135, 231, 37, 189, 87, 52, 171, 210]);
    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.DiaSymReader.ISymUnmanagedAsyncMethod
{
    [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.IsAsyncMethod_3 = &ABI_IsAsyncMethod;
            Vtable.GetKickoffMethod_4 = &ABI_GetKickoffMethod;
            Vtable.HasCatchHandlerILOffset_5 = &ABI_HasCatchHandlerILOffset;
            Vtable.GetCatchHandlerILOffset_6 = &ABI_GetCatchHandlerILOffset;
            Vtable.GetAsyncStepInfoCount_7 = &ABI_GetAsyncStepInfoCount;
            Vtable.GetAsyncStepInfo_8 = &ABI_GetAsyncStepInfo;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod.IsAsyncMethod(out bool value)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, int*, int>)__vtable[3]);
            {
                value = default;
                int __value_native;
                int __retVal;
                {
                    __retVal = __target(__this, &__value_native);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                // Unmarshal - Convert native data to managed data.
                value = __value_native != 0;
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_IsAsyncMethod(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int* __value_native__param)
    {
        unsafe
        {
            global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod @this = default;
            ref int __value_native = ref *__value_native__param;
            bool value = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod>(__this_native);
                __retVal = @this.IsAsyncMethod(out value);
                // Marshal - Convert managed data to native data.
                __value_native = (int)(value ? 1 : 0);
            }
            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.DiaSymReader.ISymUnmanagedAsyncMethod.GetKickoffMethod(out int kickoffMethodToken)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, int*, int>)__vtable[4]);
            {
                kickoffMethodToken = default;
                int __retVal;
                // Pin - Pin data in preparation for calling the P/Invoke.
                fixed (int* __kickoffMethodToken_native = &kickoffMethodToken)
                {
                    __retVal = __target(__this, __kickoffMethodToken_native);
                }
                // 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_GetKickoffMethod(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int* __kickoffMethodToken_native__param)
    {
        unsafe
        {
            global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod @this = default;
            ref int __kickoffMethodToken_native = ref *__kickoffMethodToken_native__param;
            int kickoffMethodToken = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod>(__this_native);
                __retVal = @this.GetKickoffMethod(out kickoffMethodToken);
                // Marshal - Convert managed data to native data.
                __kickoffMethodToken_native = kickoffMethodToken;
            }
            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.DiaSymReader.ISymUnmanagedAsyncMethod.HasCatchHandlerILOffset(out bool offset)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, int*, int>)__vtable[5]);
            {
                offset = default;
                int __offset_native;
                int __retVal;
                {
                    __retVal = __target(__this, &__offset_native);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                // Unmarshal - Convert native data to managed data.
                offset = __offset_native != 0;
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_HasCatchHandlerILOffset(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int* __offset_native__param)
    {
        unsafe
        {
            global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod @this = default;
            ref int __offset_native = ref *__offset_native__param;
            bool offset = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod>(__this_native);
                __retVal = @this.HasCatchHandlerILOffset(out offset);
                // Marshal - Convert managed data to native data.
                __offset_native = (int)(offset ? 1 : 0);
            }
            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.DiaSymReader.ISymUnmanagedAsyncMethod.GetCatchHandlerILOffset(out int offset)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, int*, int>)__vtable[6]);
            {
                offset = default;
                int __retVal;
                // Pin - Pin data in preparation for calling the P/Invoke.
                fixed (int* __offset_native = &offset)
                {
                    __retVal = __target(__this, __offset_native);
                }
                // 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_GetCatchHandlerILOffset(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int* __offset_native__param)
    {
        unsafe
        {
            global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod @this = default;
            ref int __offset_native = ref *__offset_native__param;
            int offset = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod>(__this_native);
                __retVal = @this.GetCatchHandlerILOffset(out offset);
                // Marshal - Convert managed data to native data.
                __offset_native = offset;
            }
            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.DiaSymReader.ISymUnmanagedAsyncMethod.GetAsyncStepInfoCount(out int count)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, int*, int>)__vtable[7]);
            {
                count = default;
                int __retVal;
                // Pin - Pin data in preparation for calling the P/Invoke.
                fixed (int* __count_native = &count)
                {
                    __retVal = __target(__this, __count_native);
                }
                // 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_GetAsyncStepInfoCount(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int* __count_native__param)
    {
        unsafe
        {
            global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod @this = default;
            ref int __count_native = ref *__count_native__param;
            int count = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod>(__this_native);
                __retVal = @this.GetAsyncStepInfoCount(out count);
                // Marshal - Convert managed data to native data.
                __count_native = count;
            }
            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.DiaSymReader.ISymUnmanagedAsyncMethod.GetAsyncStepInfo(int bufferLength, out int count, int[] yieldOffsets, int[] breakpointOffset, int[] breakpointMethod)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, int, int*, int*, int*, int*, int>)__vtable[8]);
            {
                count = default;
                int __retVal;
                // Pin - Pin data in preparation for calling the P/Invoke.
                fixed (void* __breakpointMethod_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.ManagedToUnmanagedIn.GetPinnableReference(breakpointMethod))
                fixed (void* __breakpointOffset_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.ManagedToUnmanagedIn.GetPinnableReference(breakpointOffset))
                fixed (void* __yieldOffsets_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.ManagedToUnmanagedIn.GetPinnableReference(yieldOffsets))
                fixed (int* __count_native = &count)
                {
                    __retVal = __target(__this, bufferLength, __count_native, (int*)__yieldOffsets_native, (int*)__breakpointOffset_native, (int*)__breakpointMethod_native);
                }
                // 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_GetAsyncStepInfo(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int bufferLength, int* __count_native__param, int* __yieldOffsets_native, int* __breakpointOffset_native, int* __breakpointMethod_native)
    {
        unsafe
        {
            global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod @this = default;
            ref int __count_native = ref *__count_native__param;
            int count = default;
            int[] yieldOffsets = default;
            int[] breakpointOffset = default;
            int[] breakpointMethod = default;
            int __retVal = default;
            // Setup - Perform required setup.
            int __breakpointMethod_native__numElements;
            __breakpointMethod_native__numElements = default;
            int __breakpointOffset_native__numElements;
            __breakpointOffset_native__numElements = default;
            int __yieldOffsets_native__numElements;
            __yieldOffsets_native__numElements = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                __breakpointMethod_native__numElements = bufferLength;
                breakpointMethod = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.AllocateContainerForManagedElements(__breakpointMethod_native, __breakpointMethod_native__numElements);
                global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__breakpointMethod_native, __breakpointMethod_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(breakpointMethod));
                __breakpointOffset_native__numElements = bufferLength;
                breakpointOffset = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.AllocateContainerForManagedElements(__breakpointOffset_native, __breakpointOffset_native__numElements);
                global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__breakpointOffset_native, __breakpointOffset_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(breakpointOffset));
                __yieldOffsets_native__numElements = bufferLength;
                yieldOffsets = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.AllocateContainerForManagedElements(__yieldOffsets_native, __yieldOffsets_native__numElements);
                global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__yieldOffsets_native, __yieldOffsets_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(yieldOffsets));
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod>(__this_native);
                __retVal = @this.GetAsyncStepInfo(bufferLength, out count, yieldOffsets, breakpointOffset, breakpointMethod);
                // Marshal - Convert managed data to native data.
                global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(breakpointMethod).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__breakpointMethod_native, __breakpointMethod_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__breakpointMethod_native, __breakpointMethod_native__numElements).Length));
                global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(breakpointOffset).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__breakpointOffset_native, __breakpointOffset_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__breakpointOffset_native, __breakpointOffset_native__numElements).Length));
                global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(yieldOffsets).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__yieldOffsets_native, __yieldOffsets_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__yieldOffsets_native, __yieldOffsets_native__numElements).Length));
                __count_native = count;
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
}
 
namespace Microsoft.DiaSymReader
{
    [global::System.Runtime.InteropServices.Marshalling.IUnknownDerivedAttribute<InterfaceInformation, InterfaceImplementation>]
    public unsafe partial interface ISymUnmanagedAsyncMethod
    {
    }
}