Lines Matching refs:numChars
84 testable int calcSegmentBitLength(enum qrcodegen_Mode mode, size_t numChars);
155 seg.numChars = (int)textLen; in qrcodegen_encodeText()
177 seg.numChars = (int)dataLen; in qrcodegen_encodeBinary()
236 …appendBitsToBuffer((unsigned int)seg->numChars, numCharCountBits(seg->mode, version), qrcode, &bit… in qrcodegen_encodeSegmentsAdvanced()
832 size_t qrcodegen_calcSegmentBufferSize(enum qrcodegen_Mode mode, size_t numChars) { in qrcodegen_calcSegmentBufferSize() argument
833 int temp = calcSegmentBitLength(mode, numChars); in qrcodegen_calcSegmentBufferSize()
849 testable int calcSegmentBitLength(enum qrcodegen_Mode mode, size_t numChars) { in calcSegmentBitLength() argument
851 if (numChars > (unsigned int)INT16_MAX) in calcSegmentBitLength()
853 long result = (long)numChars; in calcSegmentBitLength()
862 else if (mode == qrcodegen_Mode_ECI && numChars == 0) in calcSegmentBitLength()
882 result.numChars = (int)len; in qrcodegen_makeBytes()
898 result.numChars = (int)len; in qrcodegen_makeNumeric()
932 result.numChars = (int)len; in qrcodegen_makeAlphanumeric()
962 result.numChars = 0; in qrcodegen_makeEci()
992 int numChars = segs[i].numChars; in getTotalBits() local
994 assert(0 <= numChars && numChars <= INT16_MAX); in getTotalBits()
998 if (numChars >= (1L << ccbits)) in getTotalBits()