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