Public function - see documentation comment in header file.
| 647 | |
| 648 | // Public function - see documentation comment in header file. |
| 649 | bool 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. |