addPattern static method

void addPattern(
  1. List<List<int>> patterns,
  2. int patternIndex,
  3. List<int> checkSum,
  4. List<int> checkWeight,
  5. int position,
)

Implementation

static void addPattern(
  List<List<int>> patterns,
  int patternIndex,
  List<int> checkSum,
  List<int> checkWeight,
  int position,
) {
  patterns.add(Code128Reader.codePatterns[patternIndex]);
  if (position != 0) {
    checkWeight[0]++;
  }
  checkSum[0] += patternIndex * checkWeight[0];
}