Lua语言怎么实现按位与,按位或的操作
2 回答
慕村225694
TA贡献1880条经验 获得超4个赞
1 2 3 | luabit = require"bit" require"base" print(luabit) |
这样你就能看到所有的位运算了
常见的包括
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | { ["band"] = function: 0055B430, ["rshift"] = function: 0055B530, ["bor"] = function: 0055B470, ["bnot"] = function: 0055B3F0, ["bswap"] = function: 0055B3B0, ["bxor"] = function: 0055B4B0, ["tobit"] = function: 0055B390, ["ror"] = function: 00559C98, ["lshift"] = function: 0055B4F0, ["tohex"] = function: 0055B610, ["rol"] = function: 0055B5B0, ["arshift"] = function: 0055B570, } |
- 2 回答
- 0 关注
- 510 浏览
添加回答
举报
0/150
提交
取消