diff --git a/de4dot.code/Utils.cs b/de4dot.code/Utils.cs index 0c974db6..3e5fd758 100644 --- a/de4dot.code/Utils.cs +++ b/de4dot.code/Utils.cs @@ -216,5 +216,15 @@ namespace de4dot { return false; } } + + public static bool compare(byte[] a, byte[] b) { + if (a.Length != b.Length) + return false; + for (int i = 0; i < a.Length; i++) { + if (a[i] != b[i]) + return false; + } + return true; + } } }