private void AddDataCluster(int rowIndex, int columnIndex, int dataPointer) { int clusterIndex = PDF417.CalculateClusterIndex(rowIndex); string str = SpecificationData.BarSpaceSequence[(int)this.encodedRawData[dataPointer]][clusterIndex].ToString(); for (int index1 = 0; index1 < str.Length; ++index1) { bool flag = index1 % 2 == 0; for (int index2 = 0; index2 < int.Parse(str[index1].ToString()); ++index2) { this.dataMatrix[rowIndex, columnIndex] = flag; ++columnIndex; } } }
private void AddRightRowIndicatorCluster(int rowIndex, int columnIndex) { int clusterIndex = PDF417.CalculateClusterIndex(rowIndex); int rightRowIndicator = PDF417.CalculateRightRowIndicator(clusterIndex, rowIndex, this.rows, this.columns, this.eCLevel); string str = SpecificationData.BarSpaceSequence[rightRowIndicator][clusterIndex].ToString(); for (int index1 = 0; index1 < str.Length; ++index1) { bool flag = index1 % 2 == 0; for (int index2 = 0; index2 < int.Parse(str[index1].ToString()); ++index2) { this.dataMatrix[rowIndex, columnIndex] = flag; ++columnIndex; } } }