File: _generated\9\Microsoft.DiaSymReader.ISymEncUnmanagedMethod.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*, int, int, int*, char*, int> GetFileNameFromOffset_3;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int, int*, int*, int*, int*, int*, int> GetLineFromOffset_4;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int*, int> GetDocumentsForMethodCount_5;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int, int*, global::System.IntPtr*, int> GetDocumentsForMethod_6;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void*, int*, int*, int> GetSourceExtentInDocument_7;
}

file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([218, 145, 232, 133, 49, 166, 118, 76, 172, 162, 164, 74, 57, 196, 107, 140]);
    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.ISymEncUnmanagedMethod
{
    [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.GetFileNameFromOffset_3 = &ABI_GetFileNameFromOffset;
        Vtable.GetLineFromOffset_4 = &ABI_GetLineFromOffset;
        Vtable.GetDocumentsForMethodCount_5 = &ABI_GetDocumentsForMethodCount;
        Vtable.GetDocumentsForMethod_6 = &ABI_GetDocumentsForMethod;
        Vtable.GetSourceExtentInDocument_7 = &ABI_GetSourceExtentInDocument;
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.DiaSymReader.ISymEncUnmanagedMethod.GetFileNameFromOffset(int offset, int bufferLength, out int count, char[] name)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymEncUnmanagedMethod));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, int, int, int*, char*, int> )__vtable[3]);
        {
            count = default;
            int __retVal;
            // Pin - Pin data in preparation for calling the P/Invoke.
            fixed (void* __name_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.ManagedToUnmanagedIn.GetPinnableReference(name))
            fixed (int* __count_native = &count)
            {
                __retVal = __target(__this, offset, bufferLength, __count_native, (char*)__name_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_GetFileNameFromOffset(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int offset, int bufferLength, int* __count_native__param, char* __name_native)
    {
        global::Microsoft.DiaSymReader.ISymEncUnmanagedMethod @this = default;
        ref int __count_native = ref *__count_native__param;
        int count = default;
        char[] name = default;
        int __retVal = default;
        // Setup - Perform required setup.
        int __name_native__numElements;
        __name_native__numElements = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            __name_native__numElements = bufferLength;
            name = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.AllocateContainerForManagedElements(__name_native, __name_native__numElements);
            global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(name));
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymEncUnmanagedMethod>(__this_native);
            __retVal = @this.GetFileNameFromOffset(offset, bufferLength, out count, name);
            // Marshal - Convert managed data to native data.
            global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(name).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements).Length));
            __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.ISymEncUnmanagedMethod.GetLineFromOffset(int offset, out int startLine, out int startColumn, out int endLine, out int endColumn, out int sequencePointOffset)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymEncUnmanagedMethod));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, int, int*, int*, int*, int*, int*, int> )__vtable[4]);
        {
            startLine = default;
            startColumn = default;
            endLine = default;
            endColumn = default;
            sequencePointOffset = default;
            int __retVal;
            // Pin - Pin data in preparation for calling the P/Invoke.
            fixed (int* __sequencePointOffset_native = &sequencePointOffset)
            fixed (int* __endColumn_native = &endColumn)
            fixed (int* __endLine_native = &endLine)
            fixed (int* __startColumn_native = &startColumn)
            fixed (int* __startLine_native = &startLine)
            {
                __retVal = __target(__this, offset, __startLine_native, __startColumn_native, __endLine_native, __endColumn_native, __sequencePointOffset_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_GetLineFromOffset(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int offset, int* __startLine_native__param, int* __startColumn_native__param, int* __endLine_native__param, int* __endColumn_native__param, int* __sequencePointOffset_native__param)
    {
        global::Microsoft.DiaSymReader.ISymEncUnmanagedMethod @this = default;
        ref int __startLine_native = ref *__startLine_native__param;
        int startLine = default;
        ref int __startColumn_native = ref *__startColumn_native__param;
        int startColumn = default;
        ref int __endLine_native = ref *__endLine_native__param;
        int endLine = default;
        ref int __endColumn_native = ref *__endColumn_native__param;
        int endColumn = default;
        ref int __sequencePointOffset_native = ref *__sequencePointOffset_native__param;
        int sequencePointOffset = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymEncUnmanagedMethod>(__this_native);
            __retVal = @this.GetLineFromOffset(offset, out startLine, out startColumn, out endLine, out endColumn, out sequencePointOffset);
            // Marshal - Convert managed data to native data.
            __sequencePointOffset_native = sequencePointOffset;
            __endColumn_native = endColumn;
            __endLine_native = endLine;
            __startColumn_native = startColumn;
            __startLine_native = startLine;
        }
        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.ISymEncUnmanagedMethod.GetDocumentsForMethodCount(out int count)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymEncUnmanagedMethod));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, int*, int> )__vtable[5]);
        {
            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 int ABI_GetDocumentsForMethodCount(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int* __count_native__param)
    {
        global::Microsoft.DiaSymReader.ISymEncUnmanagedMethod @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.ISymEncUnmanagedMethod>(__this_native);
            __retVal = @this.GetDocumentsForMethodCount(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.ISymEncUnmanagedMethod.GetDocumentsForMethod(int bufferLength, out int count, global::Microsoft.DiaSymReader.ISymUnmanagedDocument[] documents)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymEncUnmanagedMethod));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, int, int*, global::System.IntPtr*, int> )__vtable[6]);
        {
            bool __invokeSucceeded = default;
            count = default;
            global::System.IntPtr* __documents_native = default;
            int __retVal = default;
            // Setup - Perform required setup.
            scoped global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument, global::System.IntPtr>.ManagedToUnmanagedIn __documents_native__marshaller = new();
            int __documents_native__numElements;
            global::System.Runtime.CompilerServices.Unsafe.SkipInit(out __documents_native__numElements);
            int __documents_native__lastIndexMarshalled = 0;
            try
            {
                // Marshal - Convert managed data to native data.
                __documents_native__marshaller.FromManaged(documents, stackalloc global::System.IntPtr[global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument, global::System.IntPtr>.ManagedToUnmanagedIn.BufferSize]);
                {
                    global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = __documents_native__marshaller.GetManagedValuesSource();
                    global::System.Span<global::System.IntPtr> __documents_native__nativeSpan = __documents_native__marshaller.GetUnmanagedValuesDestination();
                    for (int __i0 = 0; __i0 < __documents_native__managedSpan.Length; ++__i0, ++__documents_native__lastIndexMarshalled)
                    {
                        void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0];
                        __documents_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToUnmanaged(__documents_native__managedSpan[__i0]);
                        __documents_native__nativeSpan[__i0] = (global::System.IntPtr)__documents_native__nativeSpan____i0_exactType;
                    }
                }
    
                // Pin - Pin data in preparation for calling the P/Invoke.
                fixed (void* __documents_native__unused = __documents_native__marshaller)
                fixed (int* __count_native = &count)
                {
                    // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                    __documents_native = __documents_native__marshaller.ToUnmanaged();
                    __retVal = __target(__this, bufferLength, __count_native, __documents_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.
                {
                    __documents_native__numElements = __documents_native__marshaller.GetManagedValuesSource().Length;
                    global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __documents_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __documents_native__numElements);
                    global::System.Span<global::System.IntPtr> __documents_native__nativeSpan = __documents_native__marshaller.GetUnmanagedValuesDestination();
                    for (int __i0 = 0; __i0 < __documents_native__managedSpan.Length; ++__i0)
                    {
                        void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0];
                        __documents_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__documents_native__nativeSpan____i0_exactType);
                    }
                }
            }
            finally
            {
                if (__invokeSucceeded)
                {
                    // CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
                    _ = __documents_native__lastIndexMarshalled;
                }
    
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                {
                    global::System.ReadOnlySpan<global::System.IntPtr> __documents_native__nativeSpan = __documents_native__marshaller.GetUnmanagedValuesDestination();
                    for (int __i0 = 0; __i0 < __documents_native__lastIndexMarshalled; ++__i0)
                    {
                        void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0];
                        global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.Free(__documents_native__nativeSpan____i0_exactType);
                    }
                }
    
                __documents_native__marshaller.Free();
            }
    
            return __retVal;
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static int ABI_GetDocumentsForMethod(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int bufferLength, int* __count_native__param, global::System.IntPtr* __documents_native)
    {
        global::Microsoft.DiaSymReader.ISymEncUnmanagedMethod @this = default;
        ref int __count_native = ref *__count_native__param;
        int count = default;
        global::Microsoft.DiaSymReader.ISymUnmanagedDocument[] documents = default;
        int __retVal = default;
        // Setup - Perform required setup.
        int __documents_native__numElements;
        __documents_native__numElements = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            __documents_native__numElements = bufferLength;
            documents = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument, global::System.IntPtr>.AllocateContainerForManagedElements(__documents_native, __documents_native__numElements);
            {
                global::System.ReadOnlySpan<global::System.IntPtr> __documents_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument, global::System.IntPtr>.GetUnmanagedValuesSource(__documents_native, __documents_native__numElements);
                global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument, global::System.IntPtr>.GetManagedValuesDestination(documents);
                for (int __i0 = 0; __i0 < __documents_native__nativeSpan.Length; ++__i0)
                {
                    void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0];
                    __documents_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__documents_native__nativeSpan____i0_exactType);
                }
            }
    
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymEncUnmanagedMethod>(__this_native);
            __retVal = @this.GetDocumentsForMethod(bufferLength, out count, documents);
            // Marshal - Convert managed data to native data.
            {
                __documents_native__numElements = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument, global::System.IntPtr>.GetManagedValuesDestination(documents).Length;
                global::System.Span<global::System.IntPtr> __documents_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.ISymUnmanagedDocument, global::System.IntPtr>.GetUnmanagedValuesSource(__documents_native, __documents_native__numElements).GetPinnableReference()), __documents_native__numElements);
                global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument, global::System.IntPtr>.GetManagedValuesDestination(documents);
                for (int __i0 = 0; __i0 < __documents_native__nativeSpan.Length; ++__i0)
                {
                    void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0];
                    void* __documents_native__nativeSpan____i0__original = __documents_native__nativeSpan____i0_exactType;
                    __documents_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToUnmanaged(__documents_native__managedSpan[__i0]);
                    global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.Free(__documents_native__nativeSpan____i0__original);
                    __documents_native__nativeSpan[__i0] = (global::System.IntPtr)__documents_native__nativeSpan____i0_exactType;
                }
            }
    
            __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.ISymEncUnmanagedMethod.GetSourceExtentInDocument(global::Microsoft.DiaSymReader.ISymUnmanagedDocument document, out int startLine, out int endLine)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymEncUnmanagedMethod));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, void*, int*, int*, int> )__vtable[7]);
        {
            startLine = default;
            endLine = default;
            void* __document_native = default;
            int __retVal = default;
            try
            {
                // Marshal - Convert managed data to native data.
                __document_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToUnmanaged(document);
                // Pin - Pin data in preparation for calling the P/Invoke.
                fixed (int* __endLine_native = &endLine)
                fixed (int* __startLine_native = &startLine)
                {
                    __retVal = __target(__this, __document_native, __startLine_native, __endLine_native);
                }
    
                // 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::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.Free(__document_native);
            }
    
            return __retVal;
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static int ABI_GetSourceExtentInDocument(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void* __document_native, int* __startLine_native__param, int* __endLine_native__param)
    {
        global::Microsoft.DiaSymReader.ISymEncUnmanagedMethod @this = default;
        global::Microsoft.DiaSymReader.ISymUnmanagedDocument document = default;
        ref int __startLine_native = ref *__startLine_native__param;
        int startLine = default;
        ref int __endLine_native = ref *__endLine_native__param;
        int endLine = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            document = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__document_native);
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymEncUnmanagedMethod>(__this_native);
            __retVal = @this.GetSourceExtentInDocument(document, out startLine, out endLine);
            // Marshal - Convert managed data to native data.
            __endLine_native = endLine;
            __startLine_native = startLine;
        }
        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 ISymEncUnmanagedMethod
    {
    }
}