MCPcopy Create free account
hub / github.com/DSVVA/MHY_Scanner / appendBits

Method appendBits

3rdparty/QR-Code-generator/cpp/qrcodegen.cpp:823–828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

821
822
823void BitBuffer::appendBits(std::uint32_t val, int len) {
824 if (len < 0 || len > 31 || val >> len != 0)
825 throw std::domain_error("Value out of range");
826 for (int i = len - 1; i >= 0; i--) // Append bit by bit
827 this->push_back(((val >> i) & 1) != 0);
828}
829
830}

Callers 6

doSegmentDemoFunction · 0.80
makeBytesMethod · 0.80
makeNumericMethod · 0.80
makeAlphanumericMethod · 0.80
makeEciMethod · 0.80
encodeSegmentsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected