static int GetPool(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); DescriptorPool o = LuaPB.GetPool(); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RegisterFile(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); string arg0 = ToLua.CheckString(L, 1); LuaPB.RegisterFile(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int TestStream(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); PBStreamWriter arg0 = (PBStreamWriter)ToLua.CheckObject(L, 1, typeof(PBStreamWriter)); LuaPB.TestStream(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetTestData(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); string o = LuaPB.GetTestData(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int TagSize(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int o = LuaPB.TagSize(arg0); LuaDLL.lua_pushinteger(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int UInt64Size(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); string arg0 = ToLua.CheckString(L, 1); int o = LuaPB.UInt64Size(arg0); LuaDLL.lua_pushinteger(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }