equalUint8List function

bool equalUint8List(
  1. Uint8List x,
  2. Uint8List y
)

Returns true if x and y are equivalent.

Implementation

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