qrCodeVersion describes the data length and encoding order of a single QR Code version. There are 40 versions numbers x 4 recovery levels == 160 possible qrCodeVersion structures.
| 34 | // Code version. There are 40 versions numbers x 4 recovery levels == 160 |
| 35 | // possible qrCodeVersion structures. |
| 36 | type qrCodeVersion struct { |
| 37 | // Version number (1-40 inclusive). |
| 38 | version int |
| 39 | |
| 40 | // Error recovery level. |
| 41 | level RecoveryLevel |
| 42 | |
| 43 | dataEncoderType dataEncoderType |
| 44 | |
| 45 | // Encoded data can be split into multiple blocks. Each block contains data |
| 46 | // and error recovery bytes. |
| 47 | // |
| 48 | // Larger QR Codes contain more blocks. |
| 49 | block []block |
| 50 | |
| 51 | // Number of bits required to pad the combined data & error correction bit |
| 52 | // stream up to the symbol's full capacity. |
| 53 | numRemainderBits int |
| 54 | } |
| 55 | |
| 56 | type block struct { |
| 57 | numBlocks int |
nothing calls this directly
no outgoing calls
no test coverage detected