PkmnLibRSharp/PkmnLibRSharp/FFI/IdentifiablePointer.cs

14 lines
304 B
C#
Raw Normal View History

2022-10-08 11:42:30 +00:00
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;
2022-10-08 11:42:30 +00:00
}
}