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

Method getModule

Libraries/QRCode/tests/QrCode.cpp:158–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156
157
158int qrcodegen::QrCode::getModule(int x, int y) const {
159 if (0 <= x && x < size && 0 <= y && y < size)
160 return modules.at(y).at(x) ? 1 : 0;
161 else
162 return 0; // Infinite white border
163}
164
165
166std::string qrcodegen::QrCode::toSvgString(int border) const {

Callers 1

checkFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected