luaL_loadbufferx() private method

private luaL_loadbufferx ( IntPtr luaState, byte buff, int size, string name, IntPtr x ) : int
luaState System.IntPtr
buff byte
size int
name string
x System.IntPtr
return int
示例#1
0
 private void LuaLoadBuffer(byte[] buffer, string chunkName)
 {
     //TODO: 错误处理
     if (LuaDLL.luaL_loadbufferx(_L, buffer, buffer.Length, chunkName, null) == 0)
     {
         LuaDLL.lua_pcall(_L, 0, -1, 0);
     }
 }