diff -r 436a31d11f1d -r 70c9688a1486 tweetcast/client/lib/gimite-web-socket-js-55ae639/flash-src/third-party/com/hurlant/util/Hex.as --- a/tweetcast/client/lib/gimite-web-socket-js-55ae639/flash-src/third-party/com/hurlant/util/Hex.as Thu Oct 06 11:56:48 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,66 +0,0 @@ -/** - * Hex - * - * Utility class to convert Hex strings to ByteArray or String types. - * Copyright (c) 2007 Henri Torgemane - * - * See LICENSE.txt for full license information. - */ -package com.hurlant.util -{ - import flash.utils.ByteArray; - - public class Hex - { - /** - * Support straight hex, or colon-laced hex. - * (that means 23:03:0e:f0, but *NOT* 23:3:e:f0) - * Whitespace characters are ignored. - */ - public static function toArray(hex:String):ByteArray { - hex = hex.replace(/\s|:/gm,''); - var a:ByteArray = new ByteArray; - if (hex.length&1==1) hex="0"+hex; - for (var i:uint=0;i