|
// <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*, void*, ushort*, ushort*, void**, int> GetReaderForFile_3;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void*, void*, void**, int> GetReaderFromStream_4;
}
file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
public static global::System.Guid Iid { get; } = new([66, 77, 84, 170, 203, 40, 211, 17, 189, 34, 0, 0, 248, 8, 73, 189]);
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.ISymUnmanagedBinder
{
[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.GetReaderForFile_3 = &ABI_GetReaderForFile;
Vtable.GetReaderFromStream_4 = &ABI_GetReaderFromStream;
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::Microsoft.DiaSymReader.ISymUnmanagedBinder.GetReaderForFile(object metadataImporter, string fileName, string searchPath, out global::Microsoft.DiaSymReader.ISymUnmanagedReader reader)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedBinder));
var __target = ((delegate* unmanaged[MemberFunction]<void*, void*, ushort*, ushort*, void**, int> )__vtable[3]);
{
bool __invokeSucceeded = default;
reader = default;
void* __metadataImporter_native = default;
void* __reader_native = default;
int __retVal = default;
try
{
// Marshal - Convert managed data to native data.
__metadataImporter_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToUnmanaged(metadataImporter);
// Pin - Pin data in preparation for calling the P/Invoke.
fixed (void* __searchPath_native = &global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.GetPinnableReference(searchPath))
fixed (void* __fileName_native = &global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.GetPinnableReference(fileName))
{
__retVal = __target(__this, __metadataImporter_native, (ushort*)__fileName_native, (ushort*)__searchPath_native, &__reader_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.
reader = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedReader>.ConvertToManaged(__reader_native);
}
finally
{
if (__invokeSucceeded)
{
// CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedReader>.Free(__reader_native);
}
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.Free(__metadataImporter_native);
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetReaderForFile(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void* __metadataImporter_native, ushort* __fileName_native, ushort* __searchPath_native, void** __reader_native__param)
{
global::Microsoft.DiaSymReader.ISymUnmanagedBinder @this = default;
object metadataImporter = default;
string fileName = default;
string searchPath = default;
ref void* __reader_native = ref *__reader_native__param;
global::Microsoft.DiaSymReader.ISymUnmanagedReader reader = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
searchPath = global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.ConvertToManaged(__searchPath_native);
fileName = global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.ConvertToManaged(__fileName_native);
metadataImporter = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToManaged(__metadataImporter_native);
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedBinder>(__this_native);
__retVal = @this.GetReaderForFile(metadataImporter, fileName, searchPath, out reader);
// Marshal - Convert managed data to native data.
__reader_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedReader>.ConvertToUnmanaged(reader);
}
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.ISymUnmanagedBinder.GetReaderFromStream(object metadataImporter, object stream, out global::Microsoft.DiaSymReader.ISymUnmanagedReader reader)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedBinder));
var __target = ((delegate* unmanaged[MemberFunction]<void*, void*, void*, void**, int> )__vtable[4]);
{
bool __invokeSucceeded = default;
reader = default;
void* __metadataImporter_native = default;
void* __stream_native = default;
void* __reader_native = default;
int __retVal = default;
try
{
// Marshal - Convert managed data to native data.
__stream_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToUnmanaged(stream);
__metadataImporter_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToUnmanaged(metadataImporter);
{
__retVal = __target(__this, __metadataImporter_native, __stream_native, &__reader_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.
reader = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedReader>.ConvertToManaged(__reader_native);
}
finally
{
if (__invokeSucceeded)
{
// CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedReader>.Free(__reader_native);
}
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.Free(__stream_native);
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.Free(__metadataImporter_native);
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetReaderFromStream(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void* __metadataImporter_native, void* __stream_native, void** __reader_native__param)
{
global::Microsoft.DiaSymReader.ISymUnmanagedBinder @this = default;
object metadataImporter = default;
object stream = default;
ref void* __reader_native = ref *__reader_native__param;
global::Microsoft.DiaSymReader.ISymUnmanagedReader reader = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
stream = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToManaged(__stream_native);
metadataImporter = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToManaged(__metadataImporter_native);
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedBinder>(__this_native);
__retVal = @this.GetReaderFromStream(metadataImporter, stream, out reader);
// Marshal - Convert managed data to native data.
__reader_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedReader>.ConvertToUnmanaged(reader);
}
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 ISymUnmanagedBinder
{
}
}
|