IDE默认的API里没BIT,如何导入BIT库呢?我将LUA5.1的bit.dll直接粘贴在运行目录下程序直接奔溃.SO,怎么解决这个问题呢?
module ‘bit’ not found:
no field package.preload’bit’]
no file ‘.\bit.lua’
no file ‘E:\Cocos2dxWork\QuickGame\runtime\win32\lua\bit.lua’
no file ‘E:\Cocos2dxWork\QuickGame\runtime\win32\lua\bit\init.lua’
–
PacketBuffer receive the byte stream and analyze them, then pack them into a message packet.
The method name, message metedata and message body will be splited, and return to invoker.
@see https://github.com/zrong/as3/blob/master/src/org/zengrong/net/PacketBuffer.as
@author zrong(zengrong.net)
Creation: 2013-11-14
]]
local PacketBuffer = class(“PacketBuffer”)
local Protocol = require(“net.Protocol”)
local bit = require"bit"