| 120 | |
| 121 | |
| 122 | qrcodegen::QrSegment::QrSegment(const Mode &md, int numCh, const std::vector<uint8_t> &b, int bitLen) : |
| 123 | mode(md), |
| 124 | numChars(numCh), |
| 125 | data(b), |
| 126 | bitLength(bitLen) { |
| 127 | if (numCh < 0 || bitLen < 0 || b.size() != static_cast<unsigned int>((bitLen + 7) / 8)) |
| 128 | throw "Invalid value"; |
| 129 | } |
| 130 | |
| 131 | |
| 132 | int qrcodegen::QrSegment::getTotalBits(const std::vector<QrSegment> &segs, int version) { |
nothing calls this directly
no outgoing calls
no test coverage detected