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

Function qrcodegen_getSize

modules/data/qrcode/qrcodegen.c:639–645  ·  view source on GitHub ↗

Public function - see documentation comment in header file.

Source from the content-addressed store, hash-verified

637
638// Public function - see documentation comment in header file.
639int qrcodegen_getSize(const uint8_t qrcode[]) {
640 assert(qrcode != NULL);
641 int result = qrcode[0];
642 assert((qrcodegen_VERSION_MIN * 4 + 17) <= result
643 && result <= (qrcodegen_VERSION_MAX * 4 + 17));
644 return result;
645}
646
647
648// Public function - see documentation comment in header file.

Callers 6

xs_qrcodeFunction · 0.85
drawWhiteFunctionModulesFunction · 0.85
drawFormatBitsFunction · 0.85
drawCodewordsFunction · 0.85
applyMaskFunction · 0.85
getPenaltyScoreFunction · 0.85

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected