aresamebytes function

bool aresamebytes(
  1. List<int> b1,
  2. List<int> b2
)

Implementation

bool aresamebytes(List<int> b1, List<int> b2) {
    if (b1.length != b2.length) {
        return false;
    }
    bool isqual = true;
    for (int i=0;i<b1.length; i++) {
        if (b1[i] != b2[i]) {
            isqual = false;
            break;
        }
    }
    return isqual;
}