其他分享
首页 > 其他分享> > cocos2d 网络粘包与分包处理

cocos2d 网络粘包与分包处理

作者:互联网

ByteArray.lua

--[[
Serialzation bytes stream like ActionScript flash.utils.ByteArray.
It depends on lpack.
A sample: https://github.com/zrong/lua#ByteArray

@see http://underpop.free.fr/l/lua/lpack/
@see http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/ByteArray.html
@author zrong(zengrong.net)

Creation 2013-11-14
Last Modification 2014-07-09
]]
local ByteArray = class("ByteArray")

ByteArray.ENDIAN_LITTLE = "ENDIAN_LITTLE"
ByteArray.ENDIAN_BIG =</

标签:ByteArray,utils,lpack,粘包,lua,see,分包,cocos2d,ENDIAN
来源: https://blog.csdn.net/zhang1461376499/article/details/113625541