MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / QrSegment

Method QrSegment

Libraries/QRCode/tests/QrSegment.cpp:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121
122qrcodegen::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
132int qrcodegen::QrSegment::getTotalBits(const std::vector<QrSegment> &segs, int version) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected