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

Function GetInt

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

Source from the content-addressed store, hash-verified

123}
124
125static unsigned int GetInt(const ByteArray& bytes, const ByteArray& x)
126{
127 int len = Size(x);
128 unsigned int val = 0;
129 for (int i = 0; i < len; i++)
130 val += GetBit(x[i], bytes) << (len - i - 1);
131
132 return val;
133}
134
135static unsigned int GetPostCode2Length(const ByteArray& bytes)
136{

Callers 5

GetPostCode2LengthFunction · 0.85
GetPostCode2Function · 0.85
GetPostCode3Function · 0.85
GetCountryFunction · 0.85
GetServiceClassFunction · 0.85

Calls 2

GetBitFunction · 0.85
SizeFunction · 0.50

Tested by

no test coverage detected