Home
last modified time | relevance | path

Searched refs:qrcodegen_calcSegmentBufferSize (Results 1 – 4 of 4) sorted by relevance

/third_party/qrcodegen/c/
Dqrcodegen-demo.c144 …uint8_t *segBuf0 = malloc(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_ALPHANUMERIC, strlen(silv… in doSegmentDemo()
145 …uint8_t *segBuf1 = malloc(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_NUMERIC, strlen(silver1))… in doSegmentDemo()
192 …uint8_t *segBuf0 = malloc(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_BYTE, strlen(golden0)) * … in doSegmentDemo()
193 …uint8_t *segBuf1 = malloc(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_NUMERIC, strlen(golden1))… in doSegmentDemo()
194 …uint8_t *segBuf2 = malloc(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_ALPHANUMERIC, strlen(gold… in doSegmentDemo()
244 …uint8_t *segBuf = calloc(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_KANJI, len), sizeof(uint8_… in doSegmentDemo()
Dqrcodegen-test.c622 assert(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_NUMERIC, cases[i][0]) == cases[i][1]); in testCalcSegmentBufferSize()
653 assert(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_ALPHANUMERIC, cases[i][0]) == cases[i][1]); in testCalcSegmentBufferSize()
683 assert(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_BYTE, cases[i][0]) == cases[i][1]); in testCalcSegmentBufferSize()
712 assert(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_KANJI, cases[i][0]) == cases[i][1]); in testCalcSegmentBufferSize()
717 assert(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_ECI, 0) == 3); in testCalcSegmentBufferSize()
Dqrcodegen.h332 size_t qrcodegen_calcSegmentBufferSize(enum qrcodegen_Mode mode, size_t numChars);
Dqrcodegen.c139 if (qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_NUMERIC, textLen) > bufLen) in qrcodegen_encodeText()
143 if (qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_ALPHANUMERIC, textLen) > bufLen) in qrcodegen_encodeText()
832 size_t qrcodegen_calcSegmentBufferSize(enum qrcodegen_Mode mode, size_t numChars) { in qrcodegen_calcSegmentBufferSize() function