2023-04-03 11:04:31 +08:00

45 lines
1.4 KiB
C#

namespace XLua.LuaDLL
{
using System;
using System.Runtime.InteropServices;
public partial class Lua
{
// rapidjson
[DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]
public static extern int luaopen_rapidjson(System.IntPtr L);
[MonoPInvokeCallback(typeof(LuaDLL.lua_CSFunction))]
public static int LoadRapidJson(System.IntPtr L)
{
return luaopen_rapidjson(L);
}
// lpeg
[DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]
public static extern int luaopen_lpeg(System.IntPtr L);
[MonoPInvokeCallback(typeof(LuaDLL.lua_CSFunction))]
public static int LoadLpeg(System.IntPtr L)
{
return luaopen_lpeg(L);
}
// lua-profobuf
[DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]
public static extern int luaopen_pb(System.IntPtr L);
[MonoPInvokeCallback(typeof(LuaDLL.lua_CSFunction))]
public static int LoadLuaProfobuf(System.IntPtr L)
{
return luaopen_pb(L);
}
[DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr getShitD();
[DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr decryptLua(ref byte src, int length);
}
}