static int OpenFromMemory(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); TableUtil obj = (TableUtil)ToLua.CheckObject(L, 1, typeof(TableUtil)); byte[] arg0 = ToLua.CheckByteBuffer(L, 2); bool o = obj.OpenFromMemory(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }