Added hexlate() and unhexlate() to StringUtil.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4363 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-09-08 02:30:12 +00:00
parent ddd796431d
commit 2c84eb9251
3 changed files with 49 additions and 25 deletions
@@ -10,7 +10,7 @@ import flash.net.Socket;
import flash.utils.ByteArray;
import flash.utils.Endian;
import com.threerings.util.Util;
import com.threerings.util.StringUtil;
import com.threerings.io.FrameAvailableEvent;
import com.threerings.io.FrameReader;
@@ -157,7 +157,7 @@ public class Communicator
// write the message (ends up in _outBuffer)
_outStream.writeObject(msg);
// Log.debug("outBuffer: " + Util.bytesToString(_outBuffer));
// Log.debug("outBuffer: " + StringUtil.unhexlate(_outBuffer));
// Frame it by writing the length, then the bytes.
// We add 4 to the length, because the length is of the entire frame
@@ -199,7 +199,7 @@ public class Communicator
// convert the frame data into a message from the server
var frameData :ByteArray = event.getFrameData();
//Log.debug("length of in frame: " + frameData.length);
//Log.debug("inBuffer: " + Util.bytesToString(frameData));
//Log.debug("inBuffer: " + StringUtil.unhexlate(frameData));
_inStream.setSource(frameData);
var msg :DownstreamMessage;
try {