|
// <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> GetToken_3;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int*, int> GetSequencePointCount_4;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void**, int> GetRootScope_5;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int, void**, int> GetScopeFromOffset_6;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void*, int, int, int*, int> GetOffset_7;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void*, int, int, int, int*, int*, int> GetRanges_8;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int, int*, global::System.IntPtr*, int> GetParameters_9;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void**, int> GetNamespace_10;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, global::System.IntPtr*, int*, int*, int*, int> GetSourceStartEnd_11;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int, int*, int*, global::System.IntPtr*, int*, int*, int*, int*, int> GetSequencePoints_12;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int*, int> GetLocalSignatureToken_13;
}
file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
public static global::System.Guid Iid { get; } = new([200, 32, 163, 93, 44, 156, 90, 78, 184, 35, 2, 126, 6, 119, 179, 89]);
public static void** ManagedVirtualMethodTable => (void**)global::System.Runtime.CompilerServices.Unsafe.AsPointer(in InterfaceImplementation.Vtable);
}
[global::System.Runtime.InteropServices.DynamicInterfaceCastableImplementationAttribute]
file unsafe interface InterfaceImplementation : global::Microsoft.DiaSymReader.ISymUnmanagedMethod2
{
[global::System.Runtime.CompilerServices.FixedAddressValueTypeAttribute]
public static readonly InterfaceImplementationVtable Vtable;
static InterfaceImplementation()
{
global::System.Runtime.InteropServices.NativeMemory.Copy(
global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod).TypeHandle).ManagedVirtualMethodTable,
global::System.Runtime.CompilerServices.Unsafe.AsPointer(ref Vtable),
(nuint)(sizeof(void*) * 13));
Vtable.GetLocalSignatureToken_13 = &ABI_GetLocalSignatureToken;
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod2.GetLocalSignatureToken(out int localSignatureToken)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod2));
var __target = ((delegate* unmanaged[MemberFunction]<void*, int*, int> )__vtable[13]);
{
localSignatureToken = default;
int __retVal;
// Pin - Pin data in preparation for calling the P/Invoke.
fixed (int* __localSignatureToken_native = &localSignatureToken)
{
__retVal = __target(__this, __localSignatureToken_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_GetLocalSignatureToken(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int* __localSignatureToken_native__param)
{
global::Microsoft.DiaSymReader.ISymUnmanagedMethod2 @this = default;
ref int __localSignatureToken_native = ref *__localSignatureToken_native__param;
int localSignatureToken = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedMethod2>(__this_native);
__retVal = @this.GetLocalSignatureToken(out localSignatureToken);
// Marshal - Convert managed data to native data.
__localSignatureToken_native = localSignatureToken;
}
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.ISymUnmanagedMethod2.GetToken(out int methodToken)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod2));
var __target = ((delegate* unmanaged[MemberFunction]<void*, int*, int> )__vtable[3]);
{
methodToken = default;
int __retVal;
// Pin - Pin data in preparation for calling the P/Invoke.
fixed (int* __methodToken_native = &methodToken)
{
__retVal = __target(__this, __methodToken_native);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
global::System.GC.KeepAlive(this);
return __retVal;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod2.GetSequencePointCount(out int count)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod2));
var __target = ((delegate* unmanaged[MemberFunction]<void*, 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, __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.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod2.GetRootScope(out global::Microsoft.DiaSymReader.ISymUnmanagedScope scope)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod2));
var __target = ((delegate* unmanaged[MemberFunction]<void*, void**, int> )__vtable[5]);
{
bool __invokeSucceeded = default;
scope = default;
void* __scope_native = default;
int __retVal = default;
try
{
{
__retVal = __target(__this, &__scope_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.
scope = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedScope>.ConvertToManaged(__scope_native);
}
finally
{
if (__invokeSucceeded)
{
// CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedScope>.Free(__scope_native);
}
}
return __retVal;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod2.GetScopeFromOffset(int offset, out global::Microsoft.DiaSymReader.ISymUnmanagedScope scope)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod2));
var __target = ((delegate* unmanaged[MemberFunction]<void*, int, void**, int> )__vtable[6]);
{
bool __invokeSucceeded = default;
scope = default;
void* __scope_native = default;
int __retVal = default;
try
{
{
__retVal = __target(__this, offset, &__scope_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.
scope = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedScope>.ConvertToManaged(__scope_native);
}
finally
{
if (__invokeSucceeded)
{
// CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedScope>.Free(__scope_native);
}
}
return __retVal;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod2.GetOffset(global::Microsoft.DiaSymReader.ISymUnmanagedDocument document, int line, int column, out int offset)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod2));
var __target = ((delegate* unmanaged[MemberFunction]<void*, void*, int, int, int*, int> )__vtable[7]);
{
offset = 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* __offset_native = &offset)
{
__retVal = __target(__this, __document_native, line, column, __offset_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.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod2.GetRanges(global::Microsoft.DiaSymReader.ISymUnmanagedDocument document, int line, int column, int bufferLength, out int count, int[] ranges)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod2));
var __target = ((delegate* unmanaged[MemberFunction]<void*, void*, int, int, int, int*, int*, int> )__vtable[8]);
{
count = 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 (void* __ranges_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.ManagedToUnmanagedIn.GetPinnableReference(ranges))
fixed (int* __count_native = &count)
{
__retVal = __target(__this, __document_native, line, column, bufferLength, __count_native, (int*)__ranges_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.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod2.GetParameters(int bufferLength, out int count, global::Microsoft.DiaSymReader.ISymUnmanagedVariable[] parameters)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod2));
var __target = ((delegate* unmanaged[MemberFunction]<void*, int, int*, global::System.IntPtr*, int> )__vtable[9]);
{
bool __invokeSucceeded = default;
count = default;
global::System.IntPtr* __parameters_native = default;
int __retVal = default;
// Setup - Perform required setup.
scoped global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.ManagedToUnmanagedIn __parameters_native__marshaller = new();
int __parameters_native__numElements;
global::System.Runtime.CompilerServices.Unsafe.SkipInit(out __parameters_native__numElements);
int __parameters_native__lastIndexMarshalled = 0;
try
{
// Marshal - Convert managed data to native data.
__parameters_native__marshaller.FromManaged(parameters, 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> __parameters_native__managedSpan = __parameters_native__marshaller.GetManagedValuesSource();
global::System.Span<global::System.IntPtr> __parameters_native__nativeSpan = __parameters_native__marshaller.GetUnmanagedValuesDestination();
for (int __i0 = 0; __i0 < __parameters_native__managedSpan.Length; ++__i0, ++__parameters_native__lastIndexMarshalled)
{
void* __parameters_native__nativeSpan____i0_exactType = (void*)__parameters_native__nativeSpan[__i0];
__parameters_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToUnmanaged(__parameters_native__managedSpan[__i0]);
__parameters_native__nativeSpan[__i0] = (global::System.IntPtr)__parameters_native__nativeSpan____i0_exactType;
}
}
// Pin - Pin data in preparation for calling the P/Invoke.
fixed (void* __parameters_native__unused = __parameters_native__marshaller)
fixed (int* __count_native = &count)
{
// PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
__parameters_native = __parameters_native__marshaller.ToUnmanaged();
__retVal = __target(__this, bufferLength, __count_native, __parameters_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.
{
__parameters_native__numElements = __parameters_native__marshaller.GetManagedValuesSource().Length;
global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __parameters_native__managedSpan = global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.CompilerServices.Unsafe.AsRef(in __parameters_native__marshaller.GetManagedValuesSource().GetPinnableReference()), __parameters_native__numElements);
global::System.Span<global::System.IntPtr> __parameters_native__nativeSpan = __parameters_native__marshaller.GetUnmanagedValuesDestination();
for (int __i0 = 0; __i0 < __parameters_native__managedSpan.Length; ++__i0)
{
void* __parameters_native__nativeSpan____i0_exactType = (void*)__parameters_native__nativeSpan[__i0];
__parameters_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__parameters_native__nativeSpan____i0_exactType);
}
}
}
finally
{
if (__invokeSucceeded)
{
// CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
_ = __parameters_native__lastIndexMarshalled;
}
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
{
global::System.ReadOnlySpan<global::System.IntPtr> __parameters_native__nativeSpan = __parameters_native__marshaller.GetUnmanagedValuesDestination();
for (int __i0 = 0; __i0 < __parameters_native__lastIndexMarshalled; ++__i0)
{
void* __parameters_native__nativeSpan____i0_exactType = (void*)__parameters_native__nativeSpan[__i0];
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.Free(__parameters_native__nativeSpan____i0_exactType);
}
}
__parameters_native__marshaller.Free();
}
return __retVal;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod2.GetNamespace(out global::Microsoft.DiaSymReader.ISymUnmanagedNamespace @namespace)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod2));
var __target = ((delegate* unmanaged[MemberFunction]<void*, void**, int> )__vtable[10]);
{
bool __invokeSucceeded = default;
@namespace = default;
void* __namespace_native = default;
int __retVal = default;
try
{
{
__retVal = __target(__this, &__namespace_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.
@namespace = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToManaged(__namespace_native);
}
finally
{
if (__invokeSucceeded)
{
// CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.Free(__namespace_native);
}
}
return __retVal;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod2.GetSourceStartEnd(global::Microsoft.DiaSymReader.ISymUnmanagedDocument[] documents, int[] lines, int[] columns, out bool defined)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod2));
var __target = ((delegate* unmanaged[MemberFunction]<void*, global::System.IntPtr*, int*, int*, int*, int> )__vtable[11]);
{
bool __invokeSucceeded = default;
defined = default;
global::System.IntPtr* __documents_native = default;
int __defined_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* __columns_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.ManagedToUnmanagedIn.GetPinnableReference(columns))
fixed (void* __lines_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.ManagedToUnmanagedIn.GetPinnableReference(lines))
fixed (void* __documents_native__unused = __documents_native__marshaller)
{
// PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
__documents_native = __documents_native__marshaller.ToUnmanaged();
__retVal = __target(__this, __documents_native, (int*)__lines_native, (int*)__columns_native, &__defined_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.
defined = __defined_native != 0;
{
__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.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod2.GetSequencePoints(int bufferLength, out int count, int[] offsets, global::Microsoft.DiaSymReader.ISymUnmanagedDocument[] documents, int[] startLines, int[] startColumns, int[] endLines, int[] endColumns)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod2));
var __target = ((delegate* unmanaged[MemberFunction]<void*, int, int*, int*, global::System.IntPtr*, int*, int*, int*, int*, int> )__vtable[12]);
{
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* __endColumns_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.ManagedToUnmanagedIn.GetPinnableReference(endColumns))
fixed (void* __endLines_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.ManagedToUnmanagedIn.GetPinnableReference(endLines))
fixed (void* __startColumns_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.ManagedToUnmanagedIn.GetPinnableReference(startColumns))
fixed (void* __startLines_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.ManagedToUnmanagedIn.GetPinnableReference(startLines))
fixed (void* __documents_native__unused = __documents_native__marshaller)
fixed (void* __offsets_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.ManagedToUnmanagedIn.GetPinnableReference(offsets))
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, (int*)__offsets_native, __documents_native, (int*)__startLines_native, (int*)__startColumns_native, (int*)__endLines_native, (int*)__endColumns_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;
}
}
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod.GetToken(out int methodToken) => throw new global::System.Diagnostics.UnreachableException();
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod.GetSequencePointCount(out int count) => throw new global::System.Diagnostics.UnreachableException();
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod.GetRootScope(out global::Microsoft.DiaSymReader.ISymUnmanagedScope scope) => throw new global::System.Diagnostics.UnreachableException();
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod.GetScopeFromOffset(int offset, out global::Microsoft.DiaSymReader.ISymUnmanagedScope scope) => throw new global::System.Diagnostics.UnreachableException();
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod.GetOffset(global::Microsoft.DiaSymReader.ISymUnmanagedDocument document, int line, int column, out int offset) => throw new global::System.Diagnostics.UnreachableException();
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod.GetRanges(global::Microsoft.DiaSymReader.ISymUnmanagedDocument document, int line, int column, int bufferLength, out int count, int[] ranges) => throw new global::System.Diagnostics.UnreachableException();
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod.GetParameters(int bufferLength, out int count, global::Microsoft.DiaSymReader.ISymUnmanagedVariable[] parameters) => throw new global::System.Diagnostics.UnreachableException();
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod.GetNamespace(out global::Microsoft.DiaSymReader.ISymUnmanagedNamespace @namespace) => throw new global::System.Diagnostics.UnreachableException();
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod.GetSourceStartEnd(global::Microsoft.DiaSymReader.ISymUnmanagedDocument[] documents, int[] lines, int[] columns, out bool defined) => throw new global::System.Diagnostics.UnreachableException();
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod.GetSequencePoints(int bufferLength, out int count, int[] offsets, global::Microsoft.DiaSymReader.ISymUnmanagedDocument[] documents, int[] startLines, int[] startColumns, int[] endLines, int[] endColumns) => throw new global::System.Diagnostics.UnreachableException();
}
namespace Microsoft.DiaSymReader
{
[global::System.Runtime.InteropServices.Marshalling.IUnknownDerivedAttribute<InterfaceInformation, InterfaceImplementation>]
public unsafe partial interface ISymUnmanagedMethod2
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
[global::System.Runtime.InteropServices.PreserveSigAttribute()]
new int GetToken(out int methodToken) => ((global::Microsoft.DiaSymReader.ISymUnmanagedMethod)this).GetToken(out methodToken);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
[global::System.Runtime.InteropServices.PreserveSigAttribute()]
new int GetSequencePointCount(out int count) => ((global::Microsoft.DiaSymReader.ISymUnmanagedMethod)this).GetSequencePointCount(out count);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
[global::System.Runtime.InteropServices.PreserveSigAttribute()]
new int GetRootScope(out global::Microsoft.DiaSymReader.ISymUnmanagedScope scope) => ((global::Microsoft.DiaSymReader.ISymUnmanagedMethod)this).GetRootScope(out scope);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
[global::System.Runtime.InteropServices.PreserveSigAttribute()]
new int GetScopeFromOffset(int offset, out global::Microsoft.DiaSymReader.ISymUnmanagedScope scope) => ((global::Microsoft.DiaSymReader.ISymUnmanagedMethod)this).GetScopeFromOffset(offset, out scope);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
[global::System.Runtime.InteropServices.PreserveSigAttribute()]
new int GetOffset(global::Microsoft.DiaSymReader.ISymUnmanagedDocument document, int line, int column, out int offset) => ((global::Microsoft.DiaSymReader.ISymUnmanagedMethod)this).GetOffset(document, line, column, out offset);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
[global::System.Runtime.InteropServices.PreserveSigAttribute()]
new int GetRanges(global::Microsoft.DiaSymReader.ISymUnmanagedDocument document, int line, int column, int bufferLength, out int count, int[] ranges) => ((global::Microsoft.DiaSymReader.ISymUnmanagedMethod)this).GetRanges(document, line, column, bufferLength, out count, ranges);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
[global::System.Runtime.InteropServices.PreserveSigAttribute()]
new int GetParameters(int bufferLength, out int count, global::Microsoft.DiaSymReader.ISymUnmanagedVariable[] parameters) => ((global::Microsoft.DiaSymReader.ISymUnmanagedMethod)this).GetParameters(bufferLength, out count, parameters);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
[global::System.Runtime.InteropServices.PreserveSigAttribute()]
new int GetNamespace(out global::Microsoft.DiaSymReader.ISymUnmanagedNamespace @namespace) => ((global::Microsoft.DiaSymReader.ISymUnmanagedMethod)this).GetNamespace(out @namespace);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
[global::System.Runtime.InteropServices.PreserveSigAttribute()]
new int GetSourceStartEnd(global::Microsoft.DiaSymReader.ISymUnmanagedDocument[] documents, int[] lines, int[] columns, out bool defined) => ((global::Microsoft.DiaSymReader.ISymUnmanagedMethod)this).GetSourceStartEnd(documents, lines, columns, out defined);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
[global::System.Runtime.InteropServices.PreserveSigAttribute()]
new int GetSequencePoints(int bufferLength, out int count, int[] offsets, global::Microsoft.DiaSymReader.ISymUnmanagedDocument[] documents, int[] startLines, int[] startColumns, int[] endLines, int[] endColumns) => ((global::Microsoft.DiaSymReader.ISymUnmanagedMethod)this).GetSequencePoints(bufferLength, out count, offsets, documents, startLines, startColumns, endLines, endColumns);
}
}
|