MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / qrcodegen_getModule

Function qrcodegen_getModule

modules/data/qrcode/qrcodegen.c:649–653  ·  view source on GitHub ↗

Public function - see documentation comment in header file.

Source from the content-addressed store, hash-verified

647
648// Public function - see documentation comment in header file.
649bool qrcodegen_getModule(const uint8_t qrcode[], int x, int y) {
650 assert(qrcode != NULL);
651 int qrsize = qrcode[0];
652 return (0 <= x && x < qrsize && 0 <= y && y < qrsize) && getModule(qrcode, x, y);
653}
654
655
656// Gets the module at the given coordinates, which must be in bounds.

Callers 1

xs_qrcodeFunction · 0.85

Calls 2

getModuleFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected