bytesEqual function

bool bytesEqual(
  1. Uint8List a,
  2. Uint8List b
)

Implementation

bool bytesEqual(Uint8List a, Uint8List b) {
	if (a == b) return true;

	if (a.length != b.length) {
		return false;
	}

	for (int i = 0; i < a.length; i++) {
		if (a[i] != b[i]) {
			return false;
		}
	}
	return true;
}