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;
|
2023-01-03 15:53:58 +00:00
|
|
|
|
|
|
|
public bool IsNull => Ptr == IntPtr.Zero;
|
2022-10-08 11:42:30 +00:00
|
|
|
}
|
|
|
|
}
|