4
* A class that allows to compare two ByteArrays.
5
* Copyright (c) 2007 Henri Torgemane
7
* See LICENSE.txt for full license information.
9
package com.hurlant.util {
10
import flash.utils.ByteArray;
13
public class ArrayUtil {
15
public static function equals(a1:ByteArray, a2:ByteArray):Boolean {
16
if (a1.length != a2.length) return false;
17
var l:int = a1.length;
18
for (var i:int=0;i<l;i++) {
19
if (a1[i]!=a2[i]) return false;
b'\\ No newline at end of file'