24 lines
1.2 KiB
C#
24 lines
1.2 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using PkmnLibSharp.Utils;
|
|
|
|
namespace PkmnLibSharp.FFI.StaticData.Libraries
|
|
{
|
|
internal static class MoveLibrary
|
|
{
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
|
internal static extern FFIHandleValue move_library_new(ulong capacity);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
|
internal static extern FFIHandleValue move_library_get(FFIHandleValue ptr, IntPtr key);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
|
internal static extern IntPtr move_library_get_key_by_index(FFIHandleValue ptr, ulong index);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
|
internal static extern void move_library_add(FFIHandleValue ptr, IntPtr key, FFIHandleValue value);
|
|
|
|
[DllImport(Data.DllName, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
|
internal static extern ulong move_library_len(FFIHandleValue ptr);
|
|
}
|
|
} |