(ver: int, ecl: QrCode.Ecc)
| 560 | // QR Code of the given version number and error correction level, with remainder bits discarded. |
| 561 | // This stateless pure function could be implemented as a (40*4)-cell lookup table. |
| 562 | private static getNumDataCodewords(ver: int, ecl: QrCode.Ecc): int { |
| 563 | return Math.floor(QrCode.getNumRawDataModules(ver) / 8) - |
| 564 | QrCode.ECC_CODEWORDS_PER_BLOCK [ecl.ordinal][ver] * |
| 565 | QrCode.NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver]; |
| 566 | } |
| 567 | |
| 568 | |
| 569 | // Returns a Reed-Solomon ECC generator polynomial for the given degree. This could be |
no test coverage detected