|
// <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;
}
file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
public static global::System.Guid Iid { get; } = new([60, 146, 43, 182, 0, 181, 88, 49, 165, 67, 36, 243, 7, 168, 183, 225]);
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.ISymUnmanagedMethod
{
[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.GetToken_3 = &ABI_GetToken;
Vtable.GetSequencePointCount_4 = &ABI_GetSequencePointCount;
Vtable.GetRootScope_5 = &ABI_GetRootScope;
Vtable.GetScopeFromOffset_6 = &ABI_GetScopeFromOffset;
Vtable.GetOffset_7 = &ABI_GetOffset;
Vtable.GetRanges_8 = &ABI_GetRanges;
Vtable.GetParameters_9 = &ABI_GetParameters;
Vtable.GetNamespace_10 = &ABI_GetNamespace;
Vtable.GetSourceStartEnd_11 = &ABI_GetSourceStartEnd;
Vtable.GetSequencePoints_12 = &ABI_GetSequencePoints;
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod.GetToken(out int methodToken)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod));
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.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetToken(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int* __methodToken_native__param)
{
global::Microsoft.DiaSymReader.ISymUnmanagedMethod @this = default;
ref int __methodToken_native = ref *__methodToken_native__param;
int methodToken = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>(__this_native);
__retVal = @this.GetToken(out methodToken);
// Marshal - Convert managed data to native data.
__methodToken_native = methodToken;
}
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.ISymUnmanagedMethod.GetSequencePointCount(out int count)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod));
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.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetSequencePointCount(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int* __count_native__param)
{
global::Microsoft.DiaSymReader.ISymUnmanagedMethod @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.ISymUnmanagedMethod>(__this_native);
__retVal = @this.GetSequencePointCount(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.ISymUnmanagedMethod.GetRootScope(out global::Microsoft.DiaSymReader.ISymUnmanagedScope scope)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod));
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.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetRootScope(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void** __scope_native__param)
{
global::Microsoft.DiaSymReader.ISymUnmanagedMethod @this = default;
ref void* __scope_native = ref *__scope_native__param;
global::Microsoft.DiaSymReader.ISymUnmanagedScope scope = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>(__this_native);
__retVal = @this.GetRootScope(out scope);
// Marshal - Convert managed data to native data.
__scope_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedScope>.ConvertToUnmanaged(scope);
}
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.ISymUnmanagedMethod.GetScopeFromOffset(int offset, out global::Microsoft.DiaSymReader.ISymUnmanagedScope scope)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod));
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.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetScopeFromOffset(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int offset, void** __scope_native__param)
{
global::Microsoft.DiaSymReader.ISymUnmanagedMethod @this = default;
ref void* __scope_native = ref *__scope_native__param;
global::Microsoft.DiaSymReader.ISymUnmanagedScope scope = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>(__this_native);
__retVal = @this.GetScopeFromOffset(offset, out scope);
// Marshal - Convert managed data to native data.
__scope_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedScope>.ConvertToUnmanaged(scope);
}
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.ISymUnmanagedMethod.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.ISymUnmanagedMethod));
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.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetOffset(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void* __document_native, int line, int column, int* __offset_native__param)
{
global::Microsoft.DiaSymReader.ISymUnmanagedMethod @this = default;
global::Microsoft.DiaSymReader.ISymUnmanagedDocument document = default;
ref int __offset_native = ref *__offset_native__param;
int offset = 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.ISymUnmanagedMethod>(__this_native);
__retVal = @this.GetOffset(document, line, column, out offset);
// Marshal - Convert managed data to native data.
__offset_native = offset;
}
catch (global::System.Exception __exception)
{
__retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
}
return __retVal;
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::Microsoft.DiaSymReader.ISymUnmanagedMethod.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.ISymUnmanagedMethod));
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.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetRanges(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void* __document_native, int line, int column, int bufferLength, int* __count_native__param, int* __ranges_native)
{
global::Microsoft.DiaSymReader.ISymUnmanagedMethod @this = default;
global::Microsoft.DiaSymReader.ISymUnmanagedDocument document = default;
ref int __count_native = ref *__count_native__param;
int count = default;
int[] ranges = default;
int __retVal = default;
// Setup - Perform required setup.
int __ranges_native__numElements;
__ranges_native__numElements = default;
try
{
// Unmarshal - Convert native data to managed data.
__ranges_native__numElements = bufferLength;
ranges = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.AllocateContainerForManagedElements(__ranges_native, __ranges_native__numElements);
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__ranges_native, __ranges_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(ranges));
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.ISymUnmanagedMethod>(__this_native);
__retVal = @this.GetRanges(document, line, column, bufferLength, out count, ranges);
// Marshal - Convert managed data to native data.
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(ranges).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__ranges_native, __ranges_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__ranges_native, __ranges_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.ISymUnmanagedMethod.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.ISymUnmanagedMethod));
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.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetParameters(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int bufferLength, int* __count_native__param, global::System.IntPtr* __parameters_native)
{
global::Microsoft.DiaSymReader.ISymUnmanagedMethod @this = default;
ref int __count_native = ref *__count_native__param;
int count = default;
global::Microsoft.DiaSymReader.ISymUnmanagedVariable[] parameters = default;
int __retVal = default;
// Setup - Perform required setup.
int __parameters_native__numElements;
__parameters_native__numElements = default;
try
{
// Unmarshal - Convert native data to managed data.
__parameters_native__numElements = bufferLength;
parameters = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.AllocateContainerForManagedElements(__parameters_native, __parameters_native__numElements);
{
global::System.ReadOnlySpan<global::System.IntPtr> __parameters_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetUnmanagedValuesSource(__parameters_native, __parameters_native__numElements);
global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __parameters_native__managedSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetManagedValuesDestination(parameters);
for (int __i0 = 0; __i0 < __parameters_native__nativeSpan.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);
}
}
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>(__this_native);
__retVal = @this.GetParameters(bufferLength, out count, parameters);
// Marshal - Convert managed data to native data.
{
__parameters_native__numElements = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetManagedValuesDestination(parameters).Length;
global::System.Span<global::System.IntPtr> __parameters_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(__parameters_native, __parameters_native__numElements).GetPinnableReference()), __parameters_native__numElements);
global::System.Span<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __parameters_native__managedSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetManagedValuesDestination(parameters);
for (int __i0 = 0; __i0 < __parameters_native__nativeSpan.Length; ++__i0)
{
void* __parameters_native__nativeSpan____i0_exactType = (void*)__parameters_native__nativeSpan[__i0];
void* __parameters_native__nativeSpan____i0__original = __parameters_native__nativeSpan____i0_exactType;
__parameters_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToUnmanaged(__parameters_native__managedSpan[__i0]);
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.Free(__parameters_native__nativeSpan____i0__original);
__parameters_native__nativeSpan[__i0] = (global::System.IntPtr)__parameters_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.ISymUnmanagedMethod.GetNamespace(out global::Microsoft.DiaSymReader.ISymUnmanagedNamespace @namespace)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod));
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.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetNamespace(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void** __namespace_native__param)
{
global::Microsoft.DiaSymReader.ISymUnmanagedMethod @this = default;
ref void* __namespace_native = ref *__namespace_native__param;
global::Microsoft.DiaSymReader.ISymUnmanagedNamespace @namespace = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>(__this_native);
__retVal = @this.GetNamespace(out @namespace);
// Marshal - Convert managed data to native data.
__namespace_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToUnmanaged(@namespace);
}
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.ISymUnmanagedMethod.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.ISymUnmanagedMethod));
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.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetSourceStartEnd(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, global::System.IntPtr* __documents_native, int* __lines_native, int* __columns_native, int* __defined_native__param)
{
global::Microsoft.DiaSymReader.ISymUnmanagedMethod @this = default;
global::Microsoft.DiaSymReader.ISymUnmanagedDocument[] documents = default;
int[] lines = default;
int[] columns = default;
ref int __defined_native = ref *__defined_native__param;
bool defined = default;
int __retVal = default;
// Setup - Perform required setup.
int __columns_native__numElements;
__columns_native__numElements = default;
int __lines_native__numElements;
__lines_native__numElements = default;
int __documents_native__numElements;
__documents_native__numElements = default;
try
{
// Unmarshal - Convert native data to managed data.
__columns_native__numElements = -1;
columns = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.AllocateContainerForManagedElements(__columns_native, __columns_native__numElements);
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__columns_native, __columns_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(columns));
__lines_native__numElements = -1;
lines = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.AllocateContainerForManagedElements(__lines_native, __lines_native__numElements);
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__lines_native, __lines_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(lines));
__documents_native__numElements = -1;
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.ISymUnmanagedMethod>(__this_native);
__retVal = @this.GetSourceStartEnd(documents, lines, columns, out defined);
// Marshal - Convert managed data to native data.
__defined_native = (int)(defined ? 1 : 0);
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(columns).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__columns_native, __columns_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__columns_native, __columns_native__numElements).Length));
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(lines).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__lines_native, __lines_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__lines_native, __lines_native__numElements).Length));
{
__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;
}
}
}
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.ISymUnmanagedMethod.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.ISymUnmanagedMethod));
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;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetSequencePoints(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int bufferLength, int* __count_native__param, int* __offsets_native, global::System.IntPtr* __documents_native, int* __startLines_native, int* __startColumns_native, int* __endLines_native, int* __endColumns_native)
{
global::Microsoft.DiaSymReader.ISymUnmanagedMethod @this = default;
ref int __count_native = ref *__count_native__param;
int count = default;
int[] offsets = default;
global::Microsoft.DiaSymReader.ISymUnmanagedDocument[] documents = default;
int[] startLines = default;
int[] startColumns = default;
int[] endLines = default;
int[] endColumns = default;
int __retVal = default;
// Setup - Perform required setup.
int __endColumns_native__numElements;
__endColumns_native__numElements = default;
int __endLines_native__numElements;
__endLines_native__numElements = default;
int __startColumns_native__numElements;
__startColumns_native__numElements = default;
int __startLines_native__numElements;
__startLines_native__numElements = default;
int __documents_native__numElements;
__documents_native__numElements = default;
int __offsets_native__numElements;
__offsets_native__numElements = default;
try
{
// Unmarshal - Convert native data to managed data.
__endColumns_native__numElements = bufferLength;
endColumns = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.AllocateContainerForManagedElements(__endColumns_native, __endColumns_native__numElements);
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__endColumns_native, __endColumns_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(endColumns));
__endLines_native__numElements = bufferLength;
endLines = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.AllocateContainerForManagedElements(__endLines_native, __endLines_native__numElements);
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__endLines_native, __endLines_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(endLines));
__startColumns_native__numElements = bufferLength;
startColumns = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.AllocateContainerForManagedElements(__startColumns_native, __startColumns_native__numElements);
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__startColumns_native, __startColumns_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(startColumns));
__startLines_native__numElements = bufferLength;
startLines = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.AllocateContainerForManagedElements(__startLines_native, __startLines_native__numElements);
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__startLines_native, __startLines_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(startLines));
__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);
}
}
__offsets_native__numElements = bufferLength;
offsets = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.AllocateContainerForManagedElements(__offsets_native, __offsets_native__numElements);
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__offsets_native, __offsets_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(offsets));
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>(__this_native);
__retVal = @this.GetSequencePoints(bufferLength, out count, offsets, documents, startLines, startColumns, endLines, endColumns);
// Marshal - Convert managed data to native data.
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(endColumns).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__endColumns_native, __endColumns_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__endColumns_native, __endColumns_native__numElements).Length));
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(endLines).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__endLines_native, __endLines_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__endLines_native, __endLines_native__numElements).Length));
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(startColumns).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__startColumns_native, __startColumns_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__startColumns_native, __startColumns_native__numElements).Length));
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(startLines).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__startLines_native, __startLines_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__startLines_native, __startLines_native__numElements).Length));
{
__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;
}
}
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(offsets).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__offsets_native, __offsets_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__offsets_native, __offsets_native__numElements).Length));
__count_native = count;
}
catch (global::System.Exception __exception)
{
__retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
}
return __retVal;
}
}
namespace Microsoft.DiaSymReader
{
[global::System.Runtime.InteropServices.Marshalling.IUnknownDerivedAttribute<InterfaceInformation, InterfaceImplementation>]
public unsafe partial interface ISymUnmanagedMethod
{
}
}
|