|
// <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*, ushort*, ushort*, ushort*, ushort*, int, int*, char*, int> GetCompilerInfo_3;
}
file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
public static global::System.Guid Iid { get; } = new([235, 171, 123, 45, 21, 68, 25, 74, 139, 224, 223, 172, 199, 97, 21, 148]);
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.ISymUnmanagedCompilerInfoReader
{
[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.GetCompilerInfo_3 = &ABI_GetCompilerInfo;
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::Microsoft.DiaSymReader.ISymUnmanagedCompilerInfoReader.GetCompilerInfo(out ushort major, out ushort minor, out ushort build, out ushort revision, int bufferLength, out int count, char[] name)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedCompilerInfoReader));
var __target = ((delegate* unmanaged[MemberFunction]<void*, ushort*, ushort*, ushort*, ushort*, int, int*, char*, int> )__vtable[3]);
{
major = default;
minor = default;
build = default;
revision = default;
count = default;
int __retVal;
// Pin - Pin data in preparation for calling the P/Invoke.
fixed (void* __name_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.ManagedToUnmanagedIn.GetPinnableReference(name))
fixed (int* __count_native = &count)
fixed (ushort* __revision_native = &revision)
fixed (ushort* __build_native = &build)
fixed (ushort* __minor_native = &minor)
fixed (ushort* __major_native = &major)
{
__retVal = __target(__this, __major_native, __minor_native, __build_native, __revision_native, bufferLength, __count_native, (char*)__name_native);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
global::System.GC.KeepAlive(this);
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetCompilerInfo(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ushort* __major_native__param, ushort* __minor_native__param, ushort* __build_native__param, ushort* __revision_native__param, int bufferLength, int* __count_native__param, char* __name_native)
{
global::Microsoft.DiaSymReader.ISymUnmanagedCompilerInfoReader @this = default;
ref ushort __major_native = ref *__major_native__param;
ushort major = default;
ref ushort __minor_native = ref *__minor_native__param;
ushort minor = default;
ref ushort __build_native = ref *__build_native__param;
ushort build = default;
ref ushort __revision_native = ref *__revision_native__param;
ushort revision = default;
ref int __count_native = ref *__count_native__param;
int count = default;
char[] name = default;
int __retVal = default;
// Setup - Perform required setup.
int __name_native__numElements;
__name_native__numElements = default;
try
{
// Unmarshal - Convert native data to managed data.
__name_native__numElements = checked((int)(major));
name = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.AllocateContainerForManagedElements(__name_native, __name_native__numElements);
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(name));
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedCompilerInfoReader>(__this_native);
__retVal = @this.GetCompilerInfo(out major, out minor, out build, out revision, bufferLength, out count, name);
// Marshal - Convert managed data to native data.
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(name).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements).Length));
__count_native = count;
__revision_native = revision;
__build_native = build;
__minor_native = minor;
__major_native = major;
}
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 ISymUnmanagedCompilerInfoReader
{
}
}
|