brutal/Brutal.RakNet/Generated/Handles/RakPeerInstance.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

18 lines
400 B
C#

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;
}
}
}
}