identicalBinaries function

bool identicalBinaries(
  1. Uint8List bytes1,
  2. Uint8List bytes2
)

Returns true if byte1 and bytes2 are identical, false if not

Implementation

bool identicalBinaries(Uint8List bytes1, Uint8List bytes2) {
  if (bytes1.length != bytes2.length) return false;
  for (int i = 0; i < bytes1.length; i++) {
    if (bytes1[i] != bytes2[i]) {
      return false;
    }
  }
  return true;
}