Add compare() byte[] method

This commit is contained in:
de4dot 2011-11-06 12:14:16 +01:00
parent 9818f675cd
commit a369d36553

View File

@ -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;
}
}
}