static int PeekInt(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { DNet.Buffer obj = (DNet.Buffer)ToLua.CheckObject <DNet.Buffer>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); int o = obj.PeekInt(arg0); LuaDLL.lua_pushinteger(L, o); return(1); } else if (count == 3) { DNet.Buffer obj = (DNet.Buffer)ToLua.CheckObject <DNet.Buffer>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); int o = obj.PeekInt(arg0, arg1); LuaDLL.lua_pushinteger(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: DNet.Buffer.PeekInt")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int QPYX_PeekInt_YXQP(IntPtr L_YXQP) { try { int QPYX_count_YXQP = LuaDLL.lua_gettop(L_YXQP); if (QPYX_count_YXQP == 2) { DNet.Buffer QPYX_obj_YXQP = (DNet.Buffer)ToLua.CheckObject <DNet.Buffer>(L_YXQP, 1); int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2); int QPYX_o_YXQP = QPYX_obj_YXQP.PeekInt(QPYX_arg0_YXQP); LuaDLL.lua_pushinteger(L_YXQP, QPYX_o_YXQP); return(1); } else if (QPYX_count_YXQP == 3) { DNet.Buffer QPYX_obj_YXQP = (DNet.Buffer)ToLua.CheckObject <DNet.Buffer>(L_YXQP, 1); int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2); bool QPYX_arg1_YXQP = LuaDLL.luaL_checkboolean(L_YXQP, 3); int QPYX_o_YXQP = QPYX_obj_YXQP.PeekInt(QPYX_arg0_YXQP, QPYX_arg1_YXQP); LuaDLL.lua_pushinteger(L_YXQP, QPYX_o_YXQP); return(1); } else { return(LuaDLL.luaL_throw(L_YXQP, "invalid arguments to method: DNet.Buffer.PeekInt")); } } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }