File: _generated\18\Microsoft.DiaSymReader.ISymUnmanagedEncUpdate.cs
Web Access
Project: src\src\symreader\src\Microsoft.DiaSymReader\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 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*, nint, global::Microsoft.DiaSymReader.SymUnmanagedLineDelta*, int, int> UpdateSymbolStore2_3;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int, int*, int> GetLocalVariableCount_4;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int, int, global::System.IntPtr*, int*, int> GetLocalVariables_5;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int> InitializeForEnc_6;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int, int*, int, int> UpdateMethodLines_7;
}

file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([221, 210, 2, 229, 113, 134, 56, 67, 143, 42, 252, 8, 34, 150, 40, 196]);
    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.DiaSymReader.ISymUnmanagedEncUpdate
{
    [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.UpdateSymbolStore2_3 = &ABI_UpdateSymbolStore2;
        Vtable.GetLocalVariableCount_4 = &ABI_GetLocalVariableCount;
        Vtable.GetLocalVariables_5 = &ABI_GetLocalVariables;
        Vtable.InitializeForEnc_6 = &ABI_InitializeForEnc;
        Vtable.UpdateMethodLines_7 = &ABI_UpdateMethodLines;
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate.UpdateSymbolStore2(global::System.Runtime.InteropServices.ComTypes.IStream stream, global::Microsoft.DiaSymReader.SymUnmanagedLineDelta[] lineDeltas, int lineDeltaCount)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint, global::Microsoft.DiaSymReader.SymUnmanagedLineDelta*, int, int> )__vtable[3]);
        {
            nint __stream_native = default;
            int __retVal = default;
            try
            {
                // Marshal - Convert managed data to native data.
                __stream_native = global::Microsoft.DiaSymReader.ComStreamWrapper.Marshaller.ConvertToUnmanaged(stream);
                // Pin - Pin data in preparation for calling the P/Invoke.
                fixed (void* __lineDeltas_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.SymUnmanagedLineDelta, global::Microsoft.DiaSymReader.SymUnmanagedLineDelta>.ManagedToUnmanagedIn.GetPinnableReference(lineDeltas))
                {
                    __retVal = __target(__this, __stream_native, (global::Microsoft.DiaSymReader.SymUnmanagedLineDelta*)__lineDeltas_native, lineDeltaCount);
                }
    
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                global::Microsoft.DiaSymReader.ComStreamWrapper.Marshaller.Free(__stream_native);
            }
    
            return __retVal;
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static int ABI_UpdateSymbolStore2(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint __stream_native, global::Microsoft.DiaSymReader.SymUnmanagedLineDelta* __lineDeltas_native, int lineDeltaCount)
    {
        global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate @this = default;
        global::System.Runtime.InteropServices.ComTypes.IStream stream = default;
        global::Microsoft.DiaSymReader.SymUnmanagedLineDelta[] lineDeltas = default;
        int __retVal = default;
        // Setup - Perform required setup.
        int __lineDeltas_native__numElements;
        __lineDeltas_native__numElements = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            __lineDeltas_native__numElements = lineDeltaCount;
            lineDeltas = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.SymUnmanagedLineDelta, global::Microsoft.DiaSymReader.SymUnmanagedLineDelta>.AllocateContainerForManagedElements(__lineDeltas_native, __lineDeltas_native__numElements);
            global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.SymUnmanagedLineDelta, global::Microsoft.DiaSymReader.SymUnmanagedLineDelta>.GetUnmanagedValuesSource(__lineDeltas_native, __lineDeltas_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.SymUnmanagedLineDelta, global::Microsoft.DiaSymReader.SymUnmanagedLineDelta>.GetManagedValuesDestination(lineDeltas));
            stream = global::Microsoft.DiaSymReader.ComStreamWrapper.Marshaller.ConvertToManaged(__stream_native);
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate>(__this_native);
            __retVal = @this.UpdateSymbolStore2(stream, lineDeltas, lineDeltaCount);
        }
        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.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate.GetLocalVariableCount(int methodToken, out int count)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, int, int*, int> )__vtable[4]);
        {
            count = default;
            int __retVal;
            // Pin - Pin data in preparation for calling the P/Invoke.
            fixed (int* __count_native = &count)
            {
                __retVal = __target(__this, methodToken, __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 int ABI_GetLocalVariableCount(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int methodToken, int* __count_native__param)
    {
        global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate @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.ISymUnmanagedEncUpdate>(__this_native);
            __retVal = @this.GetLocalVariableCount(methodToken, 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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate.GetLocalVariables(int methodToken, int bufferLength, global::Microsoft.DiaSymReader.ISymUnmanagedVariable[] variables, out int count)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, int, int, global::System.IntPtr*, int*, int> )__vtable[5]);
        {
            bool __invokeSucceeded = default;
            count = default;
            global::System.IntPtr* __variables_native = default;
            int __retVal = default;
            // Setup - Perform required setup.
            scoped global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.ManagedToUnmanagedIn __variables_native__marshaller = new();
            int __variables_native__numElements;
            global::System.Runtime.CompilerServices.Unsafe.SkipInit(out __variables_native__numElements);
            int __variables_native__lastIndexMarshalled = 0;
            try
            {
                // Marshal - Convert managed data to native data.
                __variables_native__marshaller.FromManaged(variables, stackalloc global::System.IntPtr[global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.ManagedToUnmanagedIn.BufferSize]);
                {
                    global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = __variables_native__marshaller.GetManagedValuesSource();
                    global::System.Span<global::System.IntPtr> __variables_native__nativeSpan = __variables_native__marshaller.GetUnmanagedValuesDestination();
                    for (int __i0 = 0; __i0 < __variables_native__managedSpan.Length; ++__i0, ++__variables_native__lastIndexMarshalled)
                    {
                        void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0];
                        __variables_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToUnmanaged(__variables_native__managedSpan[__i0]);
                        __variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType;
                    }
                }
    
                // Pin - Pin data in preparation for calling the P/Invoke.
                fixed (int* __count_native = &count)
                fixed (void* __variables_native__unused = __variables_native__marshaller)
                {
                    // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                    __variables_native = __variables_native__marshaller.ToUnmanaged();
                    __retVal = __target(__this, methodToken, bufferLength, __variables_native, __count_native);
                }
    
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                __invokeSucceeded = true;
                // Unmarshal - Convert native data to managed data.
                {
                    __variables_native__numElements = __variables_native__marshaller.GetManagedValuesSource().Length;
                    global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __variables_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __variables_native__numElements);
                    global::System.Span<global::System.IntPtr> __variables_native__nativeSpan = __variables_native__marshaller.GetUnmanagedValuesDestination();
                    for (int __i0 = 0; __i0 < __variables_native__managedSpan.Length; ++__i0)
                    {
                        void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0];
                        __variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType);
                    }
                }
            }
            finally
            {
                if (__invokeSucceeded)
                {
                    // CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
                    _ = __variables_native__lastIndexMarshalled;
                }
    
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                {
                    global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = __variables_native__marshaller.GetUnmanagedValuesDestination();
                    for (int __i0 = 0; __i0 < __variables_native__lastIndexMarshalled; ++__i0)
                    {
                        void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0];
                        global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.Free(__variables_native__nativeSpan____i0_exactType);
                    }
                }
    
                __variables_native__marshaller.Free();
            }
    
            return __retVal;
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static int ABI_GetLocalVariables(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int methodToken, int bufferLength, global::System.IntPtr* __variables_native, int* __count_native__param)
    {
        global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate @this = default;
        global::Microsoft.DiaSymReader.ISymUnmanagedVariable[] variables = default;
        ref int __count_native = ref *__count_native__param;
        int count = default;
        int __retVal = default;
        // Setup - Perform required setup.
        int __variables_native__numElements;
        __variables_native__numElements = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            __variables_native__numElements = bufferLength;
            variables = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.AllocateContainerForManagedElements(__variables_native, __variables_native__numElements);
            {
                global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetUnmanagedValuesSource(__variables_native, __variables_native__numElements);
                global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetManagedValuesDestination(variables);
                for (int __i0 = 0; __i0 < __variables_native__nativeSpan.Length; ++__i0)
                {
                    void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0];
                    __variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType);
                }
            }
    
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate>(__this_native);
            __retVal = @this.GetLocalVariables(methodToken, bufferLength, variables, out count);
            // Marshal - Convert managed data to native data.
            __count_native = count;
            {
                __variables_native__numElements = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetManagedValuesDestination(variables).Length;
                global::System.Span<global::System.IntPtr> __variables_native__nativeSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetUnmanagedValuesSource(__variables_native, __variables_native__numElements).GetPinnableReference()), __variables_native__numElements);
                global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetManagedValuesDestination(variables);
                for (int __i0 = 0; __i0 < __variables_native__nativeSpan.Length; ++__i0)
                {
                    void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0];
                    void* __variables_native__nativeSpan____i0__original = __variables_native__nativeSpan____i0_exactType;
                    __variables_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToUnmanaged(__variables_native__managedSpan[__i0]);
                    global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.Free(__variables_native__nativeSpan____i0__original);
                    __variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType;
                }
            }
        }
        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.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate.InitializeForEnc()
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, int> )__vtable[6]);
        {
            int __retVal;
            {
                __retVal = __target(__this);
            }
    
            // 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_InitializeForEnc(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native)
    {
        global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate @this = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate>(__this_native);
            __retVal = @this.InitializeForEnc();
        }
        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.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate.UpdateMethodLines(int methodToken, int[] deltas, int count)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, int, int*, int, int> )__vtable[7]);
        {
            int __retVal;
            // Pin - Pin data in preparation for calling the P/Invoke.
            fixed (void* __deltas_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.ManagedToUnmanagedIn.GetPinnableReference(deltas))
            {
                __retVal = __target(__this, methodToken, (int*)__deltas_native, count);
            }
    
            // 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_UpdateMethodLines(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int methodToken, int* __deltas_native, int count)
    {
        global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate @this = default;
        int[] deltas = default;
        int __retVal = default;
        // Setup - Perform required setup.
        int __deltas_native__numElements;
        __deltas_native__numElements = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            __deltas_native__numElements = count;
            deltas = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.AllocateContainerForManagedElements(__deltas_native, __deltas_native__numElements);
            global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__deltas_native, __deltas_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(deltas));
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedEncUpdate>(__this_native);
            __retVal = @this.UpdateMethodLines(methodToken, deltas, 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 ISymUnmanagedEncUpdate
    {
    }
}