isLessThanBytes static method

bool isLessThanBytes(
  1. List<int> thashedA,
  2. List<int> thashedB
)

Implementation

static bool isLessThanBytes(List<int> thashedA, List<int> thashedB) {
  for (int i = 0; i < thashedA.length && i < thashedB.length; i++) {
    if (thashedA[i] < thashedB[i]) {
      return true;
    } else if (thashedA[i] > thashedB[i]) {
      return false;
    }
  }
  return thashedA.length < thashedB.length;
}