|
// <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*, uint*, int> GetFlags_3;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, int> GetAddress_4;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong*, int> GetSize_5;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, byte*, int> GetBytes_6;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, byte*, int> SetBytes_7;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void**, int> GetType_8;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint*, int> GetNumFields_9;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, void**, uint, uint*, char*, uint*, int> GetFieldByIndex_10;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint, byte*, uint, byte*, int> Request_11;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, void*, uint*, int> GetNumFields2_12;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, void*, ulong*, int> StartEnumFields_13;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong*, void**, uint, uint*, char*, uint*, int> EnumField_14;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, int> EndEnumFields_15;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, char*, uint, uint, void*, ulong*, int> StartEnumFieldsByName_16;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong*, void**, uint*, int> EnumFieldByName_17;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, int> EndEnumFieldsByName_18;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, void**, uint, uint*, char*, int> GetFieldByToken_19;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void**, int> GetAssociatedValue_20;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void**, int> GetAssociatedType_21;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, char*, int> GetString_22;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint*, uint*, uint, uint*, uint, int*, int> GetArrayProperties_23;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, int*, void**, int> GetArrayElement_24;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong*, void**, uint, uint*, char*, void**, uint*, int> EnumField2_25;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong*, void**, void**, uint*, int> EnumFieldByName2_26;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void*, uint, void**, uint, uint*, char*, int> GetFieldByToken2_27;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint*, int> GetNumLocations_28;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, int> GetLocationByIndex_29;
}
file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
public static global::System.Guid Iid { get; } = new([199, 147, 236, 150, 0, 16, 147, 78, 137, 145, 152, 216, 118, 110, 102, 102]);
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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue
{
[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.GetFlags_3 = &ABI_GetFlags;
Vtable.GetAddress_4 = &ABI_GetAddress;
Vtable.GetSize_5 = &ABI_GetSize;
Vtable.GetBytes_6 = &ABI_GetBytes;
Vtable.SetBytes_7 = &ABI_SetBytes;
Vtable.GetType_8 = &ABI_GetType;
Vtable.GetNumFields_9 = &ABI_GetNumFields;
Vtable.GetFieldByIndex_10 = &ABI_GetFieldByIndex;
Vtable.Request_11 = &ABI_Request;
Vtable.GetNumFields2_12 = &ABI_GetNumFields2;
Vtable.StartEnumFields_13 = &ABI_StartEnumFields;
Vtable.EnumField_14 = &ABI_EnumField;
Vtable.EndEnumFields_15 = &ABI_EndEnumFields;
Vtable.StartEnumFieldsByName_16 = &ABI_StartEnumFieldsByName;
Vtable.EnumFieldByName_17 = &ABI_EnumFieldByName;
Vtable.EndEnumFieldsByName_18 = &ABI_EndEnumFieldsByName;
Vtable.GetFieldByToken_19 = &ABI_GetFieldByToken;
Vtable.GetAssociatedValue_20 = &ABI_GetAssociatedValue;
Vtable.GetAssociatedType_21 = &ABI_GetAssociatedType;
Vtable.GetString_22 = &ABI_GetString;
Vtable.GetArrayProperties_23 = &ABI_GetArrayProperties;
Vtable.GetArrayElement_24 = &ABI_GetArrayElement;
Vtable.EnumField2_25 = &ABI_EnumField2;
Vtable.EnumFieldByName2_26 = &ABI_EnumFieldByName2;
Vtable.GetFieldByToken2_27 = &ABI_GetFieldByToken2;
Vtable.GetNumLocations_28 = &ABI_GetNumLocations;
Vtable.GetLocationByIndex_29 = &ABI_GetLocationByIndex;
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetFlags(uint* flags)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, int> )__vtable[3]);
{
int __retVal;
{
__retVal = __target(__this, flags);
}
// 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_GetFlags(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* flags)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetFlags(flags);
}
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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetAddress(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* address)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, int> )__vtable[4]);
{
int __retVal;
{
__retVal = __target(__this, address);
}
// 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_GetAddress(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* address)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetAddress(address);
}
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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetSize(ulong* size)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong*, int> )__vtable[5]);
{
int __retVal;
{
__retVal = __target(__this, size);
}
// 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_GetSize(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong* size)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetSize(size);
}
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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetBytes(uint bufLen, uint* dataSize, byte* buffer)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, byte*, int> )__vtable[6]);
{
int __retVal;
{
__retVal = __target(__this, bufLen, dataSize, buffer);
}
// 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_GetBytes(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint bufLen, uint* dataSize, byte* buffer)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetBytes(bufLen, dataSize, buffer);
}
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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.SetBytes(uint bufLen, uint* dataSize, byte* buffer)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, byte*, int> )__vtable[7]);
{
int __retVal;
{
__retVal = __target(__this, bufLen, dataSize, buffer);
}
// 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_SetBytes(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint bufLen, uint* dataSize, byte* buffer)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.SetBytes(bufLen, dataSize, buffer);
}
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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetType(global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance> typeInstance)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, void**, int> )__vtable[8]);
{
void** __typeInstance_native = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.ManagedToUnmanaged __typeInstance_native__marshaller = new();
try
{
// Marshal - Convert managed data to native data.
__typeInstance_native__marshaller.FromManaged(typeInstance);
{
// PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
__typeInstance_native = __typeInstance_native__marshaller.ToUnmanaged();
__retVal = __target(__this, __typeInstance_native);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
__typeInstance_native__marshaller.OnInvoked();
global::System.GC.KeepAlive(this);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__typeInstance_native__marshaller.Free();
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetType(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void** __typeInstance_native)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance> typeInstance = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.UnmanagedToManaged __typeInstance_native__marshaller = new();
try
{
// UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
__typeInstance_native__marshaller.FromUnmanaged(__typeInstance_native);
// Unmarshal - Convert native data to managed data.
typeInstance = __typeInstance_native__marshaller.ToManaged();
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetType(typeInstance);
}
catch (global::System.Exception __exception)
{
__retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__typeInstance_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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetNumFields(uint* numFields)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, int> )__vtable[9]);
{
int __retVal;
{
__retVal = __target(__this, numFields);
}
// 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_GetNumFields(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* numFields)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetNumFields(numFields);
}
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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetFieldByIndex(uint index, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> field, uint bufLen, uint* nameLen, char* nameBuf, uint* token)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, void**, uint, uint*, char*, uint*, int> )__vtable[10]);
{
void** __field_native = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __field_native__marshaller = new();
try
{
// Marshal - Convert managed data to native data.
__field_native__marshaller.FromManaged(field);
{
// PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
__field_native = __field_native__marshaller.ToUnmanaged();
__retVal = __target(__this, index, __field_native, bufLen, nameLen, nameBuf, token);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
__field_native__marshaller.OnInvoked();
global::System.GC.KeepAlive(this);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__field_native__marshaller.Free();
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetFieldByIndex(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint index, void** __field_native, uint bufLen, uint* nameLen, char* nameBuf, uint* token)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> field = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __field_native__marshaller = new();
try
{
// UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
__field_native__marshaller.FromUnmanaged(__field_native);
// Unmarshal - Convert native data to managed data.
field = __field_native__marshaller.ToManaged();
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetFieldByIndex(index, field, bufLen, nameLen, nameBuf, token);
}
catch (global::System.Exception __exception)
{
__retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__field_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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.Request(uint reqCode, uint inBufferSize, byte* inBuffer, uint outBufferSize, byte* outBuffer)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint, byte*, uint, byte*, int> )__vtable[11]);
{
int __retVal;
{
__retVal = __target(__this, reqCode, inBufferSize, inBuffer, outBufferSize, outBuffer);
}
// 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_Request(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint reqCode, uint inBufferSize, byte* inBuffer, uint outBufferSize, byte* outBuffer)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.Request(reqCode, inBufferSize, inBuffer, outBufferSize, outBuffer);
}
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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetNumFields2(uint flags, global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance fromType, uint* numFields)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, void*, uint*, int> )__vtable[12]);
{
void* __fromType_native = default;
int __retVal = default;
try
{
// Marshal - Convert managed data to native data.
__fromType_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.ConvertToUnmanaged(fromType);
{
__retVal = __target(__this, flags, __fromType_native, numFields);
}
// 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.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.Free(__fromType_native);
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetNumFields2(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint flags, void* __fromType_native, uint* numFields)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance fromType = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
fromType = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.ConvertToManaged(__fromType_native);
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetNumFields2(flags, fromType, numFields);
}
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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.StartEnumFields(uint flags, global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance fromType, ulong* handle)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, void*, ulong*, int> )__vtable[13]);
{
void* __fromType_native = default;
int __retVal = default;
try
{
// Marshal - Convert managed data to native data.
__fromType_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.ConvertToUnmanaged(fromType);
{
__retVal = __target(__this, flags, __fromType_native, handle);
}
// 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.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.Free(__fromType_native);
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_StartEnumFields(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint flags, void* __fromType_native, ulong* handle)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance fromType = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
fromType = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.ConvertToManaged(__fromType_native);
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.StartEnumFields(flags, fromType, handle);
}
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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.EnumField(ulong* handle, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> field, uint nameBufLen, uint* nameLen, char* nameBuf, uint* token)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong*, void**, uint, uint*, char*, uint*, int> )__vtable[14]);
{
void** __field_native = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __field_native__marshaller = new();
try
{
// Marshal - Convert managed data to native data.
__field_native__marshaller.FromManaged(field);
{
// PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
__field_native = __field_native__marshaller.ToUnmanaged();
__retVal = __target(__this, handle, __field_native, nameBufLen, nameLen, nameBuf, token);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
__field_native__marshaller.OnInvoked();
global::System.GC.KeepAlive(this);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__field_native__marshaller.Free();
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_EnumField(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong* handle, void** __field_native, uint nameBufLen, uint* nameLen, char* nameBuf, uint* token)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> field = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __field_native__marshaller = new();
try
{
// UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
__field_native__marshaller.FromUnmanaged(__field_native);
// Unmarshal - Convert native data to managed data.
field = __field_native__marshaller.ToManaged();
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.EnumField(handle, field, nameBufLen, nameLen, nameBuf, token);
}
catch (global::System.Exception __exception)
{
__retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__field_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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.EndEnumFields(ulong handle)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, int> )__vtable[15]);
{
int __retVal;
{
__retVal = __target(__this, handle);
}
// 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_EndEnumFields(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong handle)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.EndEnumFields(handle);
}
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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.StartEnumFieldsByName(char* name, uint nameFlags, uint fieldFlags, global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance fromType, ulong* handle)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, char*, uint, uint, void*, ulong*, int> )__vtable[16]);
{
void* __fromType_native = default;
int __retVal = default;
try
{
// Marshal - Convert managed data to native data.
__fromType_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.ConvertToUnmanaged(fromType);
{
__retVal = __target(__this, name, nameFlags, fieldFlags, __fromType_native, handle);
}
// 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.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.Free(__fromType_native);
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_StartEnumFieldsByName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, char* name, uint nameFlags, uint fieldFlags, void* __fromType_native, ulong* handle)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance fromType = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
fromType = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.ConvertToManaged(__fromType_native);
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.StartEnumFieldsByName(name, nameFlags, fieldFlags, fromType, handle);
}
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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.EnumFieldByName(ulong* handle, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> field, uint* token)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong*, void**, uint*, int> )__vtable[17]);
{
void** __field_native = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __field_native__marshaller = new();
try
{
// Marshal - Convert managed data to native data.
__field_native__marshaller.FromManaged(field);
{
// PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
__field_native = __field_native__marshaller.ToUnmanaged();
__retVal = __target(__this, handle, __field_native, token);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
__field_native__marshaller.OnInvoked();
global::System.GC.KeepAlive(this);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__field_native__marshaller.Free();
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_EnumFieldByName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong* handle, void** __field_native, uint* token)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> field = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __field_native__marshaller = new();
try
{
// UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
__field_native__marshaller.FromUnmanaged(__field_native);
// Unmarshal - Convert native data to managed data.
field = __field_native__marshaller.ToManaged();
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.EnumFieldByName(handle, field, token);
}
catch (global::System.Exception __exception)
{
__retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__field_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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.EndEnumFieldsByName(ulong handle)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, int> )__vtable[18]);
{
int __retVal;
{
__retVal = __target(__this, handle);
}
// 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_EndEnumFieldsByName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong handle)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.EndEnumFieldsByName(handle);
}
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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetFieldByToken(uint token, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> field, uint bufLen, uint* nameLen, char* nameBuf)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, void**, uint, uint*, char*, int> )__vtable[19]);
{
void** __field_native = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __field_native__marshaller = new();
try
{
// Marshal - Convert managed data to native data.
__field_native__marshaller.FromManaged(field);
{
// PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
__field_native = __field_native__marshaller.ToUnmanaged();
__retVal = __target(__this, token, __field_native, bufLen, nameLen, nameBuf);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
__field_native__marshaller.OnInvoked();
global::System.GC.KeepAlive(this);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__field_native__marshaller.Free();
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetFieldByToken(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint token, void** __field_native, uint bufLen, uint* nameLen, char* nameBuf)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> field = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __field_native__marshaller = new();
try
{
// UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
__field_native__marshaller.FromUnmanaged(__field_native);
// Unmarshal - Convert native data to managed data.
field = __field_native__marshaller.ToManaged();
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetFieldByToken(token, field, bufLen, nameLen, nameBuf);
}
catch (global::System.Exception __exception)
{
__retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__field_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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetAssociatedValue(global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> assocValue)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, void**, int> )__vtable[20]);
{
void** __assocValue_native = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __assocValue_native__marshaller = new();
try
{
// Marshal - Convert managed data to native data.
__assocValue_native__marshaller.FromManaged(assocValue);
{
// PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
__assocValue_native = __assocValue_native__marshaller.ToUnmanaged();
__retVal = __target(__this, __assocValue_native);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
__assocValue_native__marshaller.OnInvoked();
global::System.GC.KeepAlive(this);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__assocValue_native__marshaller.Free();
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetAssociatedValue(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void** __assocValue_native)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> assocValue = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __assocValue_native__marshaller = new();
try
{
// UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
__assocValue_native__marshaller.FromUnmanaged(__assocValue_native);
// Unmarshal - Convert native data to managed data.
assocValue = __assocValue_native__marshaller.ToManaged();
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetAssociatedValue(assocValue);
}
catch (global::System.Exception __exception)
{
__retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__assocValue_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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetAssociatedType(global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance> assocType)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, void**, int> )__vtable[21]);
{
void** __assocType_native = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.ManagedToUnmanaged __assocType_native__marshaller = new();
try
{
// Marshal - Convert managed data to native data.
__assocType_native__marshaller.FromManaged(assocType);
{
// PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
__assocType_native = __assocType_native__marshaller.ToUnmanaged();
__retVal = __target(__this, __assocType_native);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
__assocType_native__marshaller.OnInvoked();
global::System.GC.KeepAlive(this);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__assocType_native__marshaller.Free();
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetAssociatedType(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void** __assocType_native)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance> assocType = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.UnmanagedToManaged __assocType_native__marshaller = new();
try
{
// UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
__assocType_native__marshaller.FromUnmanaged(__assocType_native);
// Unmarshal - Convert native data to managed data.
assocType = __assocType_native__marshaller.ToManaged();
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetAssociatedType(assocType);
}
catch (global::System.Exception __exception)
{
__retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__assocType_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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetString(uint bufLen, uint* strLen, char* str)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, char*, int> )__vtable[22]);
{
int __retVal;
{
__retVal = __target(__this, bufLen, strLen, str);
}
// 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_GetString(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint bufLen, uint* strLen, char* str)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetString(bufLen, strLen, str);
}
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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetArrayProperties(uint* rank, uint* totalElements, uint numDim, uint* dims, uint numBases, int* bases)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, uint*, uint, uint*, uint, int*, int> )__vtable[23]);
{
int __retVal;
{
__retVal = __target(__this, rank, totalElements, numDim, dims, numBases, bases);
}
// 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_GetArrayProperties(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* rank, uint* totalElements, uint numDim, uint* dims, uint numBases, int* bases)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetArrayProperties(rank, totalElements, numDim, dims, numBases, bases);
}
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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetArrayElement(uint numInd, int* indices, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> value)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, int*, void**, int> )__vtable[24]);
{
void** __value_native = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __value_native__marshaller = new();
try
{
// Marshal - Convert managed data to native data.
__value_native__marshaller.FromManaged(value);
{
// PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
__value_native = __value_native__marshaller.ToUnmanaged();
__retVal = __target(__this, numInd, indices, __value_native);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
__value_native__marshaller.OnInvoked();
global::System.GC.KeepAlive(this);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__value_native__marshaller.Free();
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetArrayElement(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint numInd, int* indices, void** __value_native)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> value = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __value_native__marshaller = new();
try
{
// UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
__value_native__marshaller.FromUnmanaged(__value_native);
// Unmarshal - Convert native data to managed data.
value = __value_native__marshaller.ToManaged();
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetArrayElement(numInd, indices, value);
}
catch (global::System.Exception __exception)
{
__retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__value_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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.EnumField2(ulong* handle, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> field, uint nameBufLen, uint* nameLen, char* nameBuf, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule> tokenScope, uint* token)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong*, void**, uint, uint*, char*, void**, uint*, int> )__vtable[25]);
{
void** __field_native = default;
void** __tokenScope_native = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule>.ManagedToUnmanaged __tokenScope_native__marshaller = new();
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __field_native__marshaller = new();
try
{
// Marshal - Convert managed data to native data.
__tokenScope_native__marshaller.FromManaged(tokenScope);
__field_native__marshaller.FromManaged(field);
{
// PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
__tokenScope_native = __tokenScope_native__marshaller.ToUnmanaged();
__field_native = __field_native__marshaller.ToUnmanaged();
__retVal = __target(__this, handle, __field_native, nameBufLen, nameLen, nameBuf, __tokenScope_native, token);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
__tokenScope_native__marshaller.OnInvoked();
__field_native__marshaller.OnInvoked();
global::System.GC.KeepAlive(this);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__tokenScope_native__marshaller.Free();
__field_native__marshaller.Free();
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_EnumField2(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong* handle, void** __field_native, uint nameBufLen, uint* nameLen, char* nameBuf, void** __tokenScope_native, uint* token)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> field = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule> tokenScope = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule>.UnmanagedToManaged __tokenScope_native__marshaller = new();
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __field_native__marshaller = new();
try
{
// UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
__tokenScope_native__marshaller.FromUnmanaged(__tokenScope_native);
__field_native__marshaller.FromUnmanaged(__field_native);
// Unmarshal - Convert native data to managed data.
tokenScope = __tokenScope_native__marshaller.ToManaged();
field = __field_native__marshaller.ToManaged();
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.EnumField2(handle, field, nameBufLen, nameLen, nameBuf, tokenScope, token);
}
catch (global::System.Exception __exception)
{
__retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__tokenScope_native__marshaller.Free();
__field_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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.EnumFieldByName2(ulong* handle, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> field, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule> tokenScope, uint* token)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong*, void**, void**, uint*, int> )__vtable[26]);
{
void** __field_native = default;
void** __tokenScope_native = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule>.ManagedToUnmanaged __tokenScope_native__marshaller = new();
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __field_native__marshaller = new();
try
{
// Marshal - Convert managed data to native data.
__tokenScope_native__marshaller.FromManaged(tokenScope);
__field_native__marshaller.FromManaged(field);
{
// PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
__tokenScope_native = __tokenScope_native__marshaller.ToUnmanaged();
__field_native = __field_native__marshaller.ToUnmanaged();
__retVal = __target(__this, handle, __field_native, __tokenScope_native, token);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
__tokenScope_native__marshaller.OnInvoked();
__field_native__marshaller.OnInvoked();
global::System.GC.KeepAlive(this);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__tokenScope_native__marshaller.Free();
__field_native__marshaller.Free();
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_EnumFieldByName2(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong* handle, void** __field_native, void** __tokenScope_native, uint* token)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> field = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule> tokenScope = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule>.UnmanagedToManaged __tokenScope_native__marshaller = new();
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __field_native__marshaller = new();
try
{
// UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
__tokenScope_native__marshaller.FromUnmanaged(__tokenScope_native);
__field_native__marshaller.FromUnmanaged(__field_native);
// Unmarshal - Convert native data to managed data.
tokenScope = __tokenScope_native__marshaller.ToManaged();
field = __field_native__marshaller.ToManaged();
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.EnumFieldByName2(handle, field, tokenScope, token);
}
catch (global::System.Exception __exception)
{
__retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__tokenScope_native__marshaller.Free();
__field_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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetFieldByToken2(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule tokenScope, uint token, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> field, uint bufLen, uint* nameLen, char* nameBuf)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, void*, uint, void**, uint, uint*, char*, int> )__vtable[27]);
{
void* __tokenScope_native = default;
void** __field_native = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __field_native__marshaller = new();
try
{
// Marshal - Convert managed data to native data.
__field_native__marshaller.FromManaged(field);
__tokenScope_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule>.ConvertToUnmanaged(tokenScope);
{
// PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
__field_native = __field_native__marshaller.ToUnmanaged();
__retVal = __target(__this, __tokenScope_native, token, __field_native, bufLen, nameLen, nameBuf);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
__field_native__marshaller.OnInvoked();
global::System.GC.KeepAlive(this);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__field_native__marshaller.Free();
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule>.Free(__tokenScope_native);
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetFieldByToken2(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void* __tokenScope_native, uint token, void** __field_native, uint bufLen, uint* nameLen, char* nameBuf)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule tokenScope = default;
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> field = default;
int __retVal = default;
// Setup - Perform required setup.
global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __field_native__marshaller = new();
try
{
// UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
__field_native__marshaller.FromUnmanaged(__field_native);
// Unmarshal - Convert native data to managed data.
field = __field_native__marshaller.ToManaged();
tokenScope = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule>.ConvertToManaged(__tokenScope_native);
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetFieldByToken2(tokenScope, token, field, bufLen, nameLen, nameBuf);
}
catch (global::System.Exception __exception)
{
__retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
}
finally
{
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
__field_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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetNumLocations(uint* numLocs)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, int> )__vtable[28]);
{
int __retVal;
{
__retVal = __target(__this, numLocs);
}
// 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_GetNumLocations(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* numLocs)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetNumLocations(numLocs);
}
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.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.GetLocationByIndex(uint loc, uint* flags, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* arg)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, int> )__vtable[29]);
{
int __retVal;
{
__retVal = __target(__this, loc, flags, arg);
}
// 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_GetLocationByIndex(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint loc, uint* flags, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* arg)
{
global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue @this = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>(__this_native);
__retVal = @this.GetLocationByIndex(loc, flags, arg);
}
catch (global::System.Exception __exception)
{
__retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
}
return __retVal;
}
}
namespace Microsoft.Diagnostics.DataContractReader.Legacy
{
[global::System.Runtime.InteropServices.Marshalling.IUnknownDerivedAttribute<InterfaceInformation, InterfaceImplementation>]
public unsafe partial interface IXCLRDataValue
{
}
}
|