PkmnLibRSharp/PkmnLibRSharp/FFI/IdentifiablePointer.cs

14 lines
304 B
C#

using System;
using System.Runtime.InteropServices;
namespace PkmnLibSharp.FFI
{
[StructLayout(LayoutKind.Sequential)]
public struct IdentifiablePointer
{
public readonly IntPtr Ptr;
public readonly nuint Identifier;
public bool IsNull => Ptr == IntPtr.Zero;
}
}