Files
ZuneShell.dll/ZuneDBApi/CComPtrMgd-IZuneMBRBandwidthTest-.cs
T
2021-11-22 01:51:40 -06:00

97 lines
1.8 KiB
C#

using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
internal class CComPtrMgd_003CIZuneMBRBandwidthTest_003E : IDisposable
{
public unsafe IZuneMBRBandwidthTest* p = null;
private void _007ECComPtrMgd_003CIZuneMBRBandwidthTest_003E()
{
Release();
}
private void _0021CComPtrMgd_003CIZuneMBRBandwidthTest_003E()
{
Release();
}
public unsafe void Release()
{
//IL_0014: Expected I, but got I8
//IL_0021: Expected I, but got I8
IZuneMBRBandwidthTest* ptr = p;
IZuneMBRBandwidthTest* ptr2 = ptr;
if (ptr != null)
{
p = null;
((delegate* unmanaged[Cdecl, Cdecl]<IntPtr, uint>)(*(ulong*)(*(long*)ptr2 + 16)))((nint)ptr2);
}
}
public static unsafe implicit operator IZuneMBRBandwidthTest*(CComPtrMgd_003CIZuneMBRBandwidthTest_003E obj)
{
return obj.p;
}
[SpecialName]
public unsafe IZuneMBRBandwidthTest* op_MemberSelection()
{
return p;
}
[SpecialName]
public unsafe IZuneMBRBandwidthTest* op_Assign(IZuneMBRBandwidthTest* lp)
{
//IL_001c: Expected I, but got I8
Release();
p = lp;
if (lp != null)
{
((delegate* unmanaged[Cdecl, Cdecl]<IntPtr, uint>)(*(ulong*)(*(long*)lp + 8)))((nint)lp);
}
return p;
}
public unsafe void Attach(IZuneMBRBandwidthTest* p2)
{
//IL_001b: Expected I, but got I8
IZuneMBRBandwidthTest* ptr = p;
if (ptr != p2)
{
if (ptr != null)
{
((delegate* unmanaged[Cdecl, Cdecl]<IntPtr, uint>)(*(ulong*)(*(long*)ptr + 16)))((nint)ptr);
}
p = p2;
}
}
protected virtual void Dispose([MarshalAs(UnmanagedType.U1)] bool P_0)
{
if (P_0)
{
Release();
return;
}
try
{
Release();
}
finally
{
//base.Finalize();
}
}
public void Dispose()
{
Dispose(true);
}
~CComPtrMgd_003CIZuneMBRBandwidthTest_003E()
{
Dispose(false);
}
}