一段as3代码求大神解读,或者用python 重写
private function encode(param1:Socket) : void
{
var _loc2_:* = null;
try
{
_coderStr = "";
_loc2_ = param1.readUnsignedInt() + "";
_coderStr = §§dup()._coderStr + (_loc2_ + "-");
_loc2_ = MurmurHash3(_loc2_);
_coderStr = §§dup()._coderStr + (_loc2_ + "-");
_loc2_ = Base64.encode(_loc2_,"iso-8859-1");
_coderStr = §§dup()._coderStr + (_loc2_ + "-");
Log.trace(this,_coderStr);
Log.trace(this,"sendlogni");
param1.writeShort(_loc2_.length + 2);
param1.writeUTFBytes(_loc2_);
param1.flush();
return;
}
海が割れる日
9 years, 5 months ago