This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit b578433e37

View file

@ -0,0 +1,18 @@
namespace Brutal.RakNetApi
{
public unsafe partial struct RakPeerInstance(nint impl) : INullable, IDisposable
{
public bool IsNull() => impl is 0;
internal nint Impl => impl;
public void Dispose()
{
if (impl is not 0)
{
RakPeerInterface.DestroyInstance(this);
impl = 0;
}
}
}
}