compareBytes static method
Compares two byte arrays
Implementation
static bool compareBytes(ByteArray a, ByteArray 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;
}