File: Generated\361d1da7f942c932\Microsoft.DiaSymReader.ISymUnmanagedNamespace.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*, char*, int> GetName_3;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int, int*, global::System.IntPtr*, int> GetNamespaces_4;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int, int*, global::System.IntPtr*, int> GetVariables_5;
}
 
file sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([137, 114, 255, 13, 248, 84, 211, 17, 189, 40, 0, 0, 248, 8, 73, 189]);
    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.ISymUnmanagedNamespace
{
    [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.GetName_3 = &ABI_GetName;
            Vtable.GetNamespaces_4 = &ABI_GetNamespaces;
            Vtable.GetVariables_5 = &ABI_GetVariables;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.DiaSymReader.ISymUnmanagedNamespace.GetName(int bufferLength, out int count, char[] name)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedNamespace));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, 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, 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 unsafe int ABI_GetName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int bufferLength, int* __count_native__param, char* __name_native)
    {
        unsafe
        {
            global::Microsoft.DiaSymReader.ISymUnmanagedNamespace @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.ISymUnmanagedNamespace>(__this_native);
                __retVal = @this.GetName(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", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.DiaSymReader.ISymUnmanagedNamespace.GetNamespaces(int bufferLength, out int count, global::Microsoft.DiaSymReader.ISymUnmanagedNamespace[] namespaces)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedNamespace));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, int, int*, global::System.IntPtr*, int>)__vtable[4]);
            {
                bool __invokeSucceeded = default;
                count = default;
                global::System.IntPtr* __namespaces_native = default;
                int __retVal = default;
                // Setup - Perform required setup.
                scoped global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace, global::System.IntPtr>.ManagedToUnmanagedIn __namespaces_native__marshaller = new();
                int __namespaces_native__numElements;
                global::System.Runtime.CompilerServices.Unsafe.SkipInit(out __namespaces_native__numElements);
                int __namespaces_native__lastIndexMarshalled = 0;
                try
                {
                    // Marshal - Convert managed data to native data.
                    __namespaces_native__marshaller.FromManaged(namespaces, stackalloc global::System.IntPtr[global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace, global::System.IntPtr>.ManagedToUnmanagedIn.BufferSize]);
                    {
                        global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = __namespaces_native__marshaller.GetManagedValuesSource();
                        global::System.Span<global::System.IntPtr> __namespaces_native__nativeSpan = __namespaces_native__marshaller.GetUnmanagedValuesDestination();
                        for (int __i0 = 0; __i0 < __namespaces_native__managedSpan.Length; ++__i0, ++__namespaces_native__lastIndexMarshalled)
                        {
                            void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0];
                            __namespaces_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToUnmanaged(__namespaces_native__managedSpan[__i0]);
                            __namespaces_native__nativeSpan[__i0] = (global::System.IntPtr)__namespaces_native__nativeSpan____i0_exactType;
                        }
                    }
                    // Pin - Pin data in preparation for calling the P/Invoke.
                    fixed (void* __namespaces_native__unused = __namespaces_native__marshaller)
                    fixed (int* __count_native = &count)
                    {
                        // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                        __namespaces_native = __namespaces_native__marshaller.ToUnmanaged();
                        __retVal = __target(__this, bufferLength, __count_native, __namespaces_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.
                    {
                        __namespaces_native__numElements = __namespaces_native__marshaller.GetManagedValuesSource().Length;
                        global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __namespaces_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __namespaces_native__numElements);
                        global::System.Span<global::System.IntPtr> __namespaces_native__nativeSpan = __namespaces_native__marshaller.GetUnmanagedValuesDestination();
                        for (int __i0 = 0; __i0 < __namespaces_native__managedSpan.Length; ++__i0)
                        {
                            void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0];
                            __namespaces_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToManaged(__namespaces_native__nativeSpan____i0_exactType);
                        }
                    }
                }
                finally
                {
                    if (__invokeSucceeded)
                    {
                        // CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
                        _ = __namespaces_native__lastIndexMarshalled;
                    }
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    {
                        global::System.ReadOnlySpan<global::System.IntPtr> __namespaces_native__nativeSpan = __namespaces_native__marshaller.GetUnmanagedValuesDestination();
                        for (int __i0 = 0; __i0 < __namespaces_native__lastIndexMarshalled; ++__i0)
                        {
                            void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0];
                            global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.Free(__namespaces_native__nativeSpan____i0_exactType);
                        }
                    }
                    __namespaces_native__marshaller.Free();
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_GetNamespaces(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int bufferLength, int* __count_native__param, global::System.IntPtr* __namespaces_native)
    {
        unsafe
        {
            global::Microsoft.DiaSymReader.ISymUnmanagedNamespace @this = default;
            ref int __count_native = ref *__count_native__param;
            int count = default;
            global::Microsoft.DiaSymReader.ISymUnmanagedNamespace[] namespaces = default;
            int __retVal = default;
            // Setup - Perform required setup.
            int __namespaces_native__numElements;
            __namespaces_native__numElements = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                __namespaces_native__numElements = bufferLength;
                namespaces = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace, global::System.IntPtr>.AllocateContainerForManagedElements(__namespaces_native, __namespaces_native__numElements);
                {
                    global::System.ReadOnlySpan<global::System.IntPtr> __namespaces_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace, global::System.IntPtr>.GetUnmanagedValuesSource(__namespaces_native, __namespaces_native__numElements);
                    global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace, global::System.IntPtr>.GetManagedValuesDestination(namespaces);
                    for (int __i0 = 0; __i0 < __namespaces_native__nativeSpan.Length; ++__i0)
                    {
                        void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0];
                        __namespaces_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToManaged(__namespaces_native__nativeSpan____i0_exactType);
                    }
                }
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>(__this_native);
                __retVal = @this.GetNamespaces(bufferLength, out count, namespaces);
                // Marshal - Convert managed data to native data.
                {
                    __namespaces_native__numElements = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace, global::System.IntPtr>.GetManagedValuesDestination(namespaces).Length;
                    global::System.Span<global::System.IntPtr> __namespaces_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.ISymUnmanagedNamespace, global::System.IntPtr>.GetUnmanagedValuesSource(__namespaces_native, __namespaces_native__numElements).GetPinnableReference()), __namespaces_native__numElements);
                    global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace, global::System.IntPtr>.GetManagedValuesDestination(namespaces);
                    for (int __i0 = 0; __i0 < __namespaces_native__nativeSpan.Length; ++__i0)
                    {
                        void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0];
                        void* __namespaces_native__nativeSpan____i0__original = __namespaces_native__nativeSpan____i0_exactType;
                        __namespaces_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToUnmanaged(__namespaces_native__managedSpan[__i0]);
                        global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.Free(__namespaces_native__nativeSpan____i0__original);
                        __namespaces_native__nativeSpan[__i0] = (global::System.IntPtr)__namespaces_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", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.DiaSymReader.ISymUnmanagedNamespace.GetVariables(int bufferLength, out int count, global::Microsoft.DiaSymReader.ISymUnmanagedVariable[] variables)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedNamespace));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, int, int*, global::System.IntPtr*, 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 (void* __variables_native__unused = __variables_native__marshaller)
                    fixed (int* __count_native = &count)
                    {
                        // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                        __variables_native = __variables_native__marshaller.ToUnmanaged();
                        __retVal = __target(__this, bufferLength, __count_native, __variables_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 unsafe int ABI_GetVariables(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int bufferLength, int* __count_native__param, global::System.IntPtr* __variables_native)
    {
        unsafe
        {
            global::Microsoft.DiaSymReader.ISymUnmanagedNamespace @this = default;
            ref int __count_native = ref *__count_native__param;
            int count = default;
            global::Microsoft.DiaSymReader.ISymUnmanagedVariable[] variables = 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.ISymUnmanagedNamespace>(__this_native);
                __retVal = @this.GetVariables(bufferLength, out count, variables);
                // Marshal - Convert managed data to native data.
                {
                    __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;
                    }
                }
                __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 ISymUnmanagedNamespace
    {
    }
}