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

Function GetBit

czxing/src/main/cpp/zxing/src/maxicode/MCDecoder.cpp:119–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117// clang-format on
118
119static int GetBit(int bit, const ByteArray& bytes)
120{
121 bit--;
122 return (bytes[bit / 6] & (1 << (5 - (bit % 6)))) == 0 ? 0 : 1;
123}
124
125static unsigned int GetInt(const ByteArray& bytes, const ByteArray& x)
126{

Callers 1

GetIntFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected