Files
UnrealEngineUWP/Engine/Source/Programs/DotNETCommon/DotNETUtilities/ArrayUtils.cs
Rolando Caloca 932a718f97 DR - Merging //UE4/Dev-Main@5196773 to Dev-Rendering (//UE4/Dev-Rendering)
#rb none
#rnx

[CL 5208164 by Rolando Caloca in Dev-Rendering branch]
2019-02-26 16:43:29 -05:00

38 lines
746 B
C#

// 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
{
/// <summary>
/// Compares two byte arrays for equality
/// </summary>
/// <param name="A">The first byte array</param>
/// <param name="B">The second byte array</param>
/// <returns>True if the two arrays are equal, false otherwise</returns>
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;
}
}
}