MCPcopy Create free account
hub / github.com/devilsen/CZXing / appendBits

Method appendBits

czxing/src/main/cpp/zxing/src/BitArray.h:76–80  ·  view source on GitHub ↗

* Appends the least-significant bits, from value, in order from most-significant to * least-significant. For example, appending 6 bits from 0x000001E will append the bits * 0, 1, 1, 1, 1, 0 in that order. * * @param value int containing bits to append * @param numBits bits from value to append */

Source from the content-addressed store, hash-verified

74 * @param numBits bits from value to append
75 */
76 void appendBits(int value, int numBits)
77 {
78 for (; numBits; --numBits)
79 _bits.push_back((value >> (numBits-1)) & 1);
80 }
81
82 void appendBit(bool bit) { _bits.push_back(bit); }
83

Callers 15

BuildBitArrayFunction · 0.80
AppendECIFunction · 0.80
AppendModeInfoFunction · 0.80
AppendLengthInfoFunction · 0.80
AppendNumericBytesFunction · 0.80
AppendAlphanumericBytesFunction · 0.80
Append8BitBytesFunction · 0.80
AppendKanjiBytesFunction · 0.80
TerminateBitsFunction · 0.80
InterleaveWithECBytesFunction · 0.80
MakeTypeInfoBitsFunction · 0.80
MakeVersionInfoBitsFunction · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected