// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tools.DotNETCommon
{
static class ArrayUtils
{
///
/// Compares two byte arrays for equality
///
/// The first byte array
/// The second byte array
/// True if the two arrays are equal, false otherwise
public static bool ByteArraysEqual(byte[] A, byte[] B)
{
if(A.Length != B.Length)
{
return false;
}
for(int Idx = 0; Idx < A.Length; Idx++)
{
if(A[Idx] != B[Idx])
{
return false;
}
}
return true;
}
}
}