Searched refs:qrcodegen_calcSegmentBufferSize (Results 1 – 4 of 4) sorted by relevance
/third_party/qrcodegen/c/ |
D | qrcodegen-demo.c | 144 …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()
|
D | qrcodegen-test.c | 622 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()
|
D | qrcodegen.h | 332 size_t qrcodegen_calcSegmentBufferSize(enum qrcodegen_Mode mode, size_t numChars);
|
D | qrcodegen.c | 139 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
|