Updated comment for QrCode.getNumRawDataModules() in all language versions.

This commit is contained in:
Project Nayuki
2017-05-06 11:51:21 +00:00
parent 84dd6f4e07
commit 652ee37f59
5 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -682,9 +682,9 @@ public final class QrCode {
}
// Returns the number of raw data modules (bits) available at the given version number.
// These data modules are used for both user data codewords and error correction codewords.
// This stateless pure function could be implemented as a 40-entry lookup table.
// Returns the number of data bits that can be stored in a QR Code of the given version number, after
// all function modules are excluded. This includes remainder bits, so it might not be a multiple of 8.
// The result is in the range [208, 29648]. This could be implemented as a 40-entry lookup table.
private static int getNumRawDataModules(int ver) {
if (ver < 1 || ver > 40)
throw new IllegalArgumentException("Version number out of range");