diff -r 436a31d11f1d -r 70c9688a1486 tweetcast/client/lib/websocket-js/flash-src/third-party/com/hurlant/util/ArrayUtil.as --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tweetcast/client/lib/websocket-js/flash-src/third-party/com/hurlant/util/ArrayUtil.as Thu Oct 06 12:39:29 2011 +0200 @@ -0,0 +1,25 @@ +/** + * ArrayUtil + * + * A class that allows to compare two ByteArrays. + * Copyright (c) 2007 Henri Torgemane + * + * See LICENSE.txt for full license information. + */ +package com.hurlant.util { + import flash.utils.ByteArray; + + + public class ArrayUtil { + + public static function equals(a1:ByteArray, a2:ByteArray):Boolean { + if (a1.length != a2.length) return false; + var l:int = a1.length; + for (var i:int=0;i