You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none [CL 5110714 by Chris Gagnon in Dev-Editor branch]
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user