constructor(versionNumber /*int*/, alignmentPatternCenters, ...ecBlocks) {
			this.versionNumber = versionNumber;
			this.alignmentPatternCenters = alignmentPatternCenters;
			this.ecBlocks = ecBlocks;
			let total = 0;
			const ecCodewords = ecBlocks[0].getECCodewordsPerBlock();
			const ecbArray = ecBlocks[0].getECBlocks();
			for (const ecBlock of ecbArray) {
				total += ecBlock.getCount() * (ecBlock.getDataCodewords() + ecCodewords);
			}
			this.totalCodewords = total;
		}
See ISO 18004:2006 Annex D

@author Sean Owen