Lines Matching refs:assert
186 assert(0 <= numBits && numBits <= 16 && (unsigned long)val >> numBits == 0); in appendBitsToBuffer()
206 assert(segs != NULL || len == 0); in qrcodegen_encodeSegmentsAdvanced()
207 …assert(qrcodegen_VERSION_MIN <= minVersion && minVersion <= maxVersion && maxVersion <= qrcodegen_… in qrcodegen_encodeSegmentsAdvanced()
208 assert(0 <= (int)ecl && (int)ecl <= 3 && -1 <= (int)mask && (int)mask <= 7); in qrcodegen_encodeSegmentsAdvanced()
222 assert(dataUsedBits != -1); in qrcodegen_encodeSegmentsAdvanced()
242 assert(bitLen == dataUsedBits); in qrcodegen_encodeSegmentsAdvanced()
246 assert(bitLen <= dataCapacityBits); in qrcodegen_encodeSegmentsAdvanced()
252 assert(bitLen % 8 == 0); in qrcodegen_encodeSegmentsAdvanced()
280 assert(0 <= (int)mask && (int)mask <= 7); in qrcodegen_encodeSegmentsAdvanced()
296 …assert(0 <= (int)ecl && (int)ecl < 4 && qrcodegen_VERSION_MIN <= version && version <= qrcodegen_V… in addEccAndInterleave()
329 assert(0 <= e && e < 4); in getNumDataCodewords()
340 assert(qrcodegen_VERSION_MIN <= ver && ver <= qrcodegen_VERSION_MAX); in getNumRawDataModules()
348 assert(208 <= result && result <= 29648); in getNumRawDataModules()
359 assert(1 <= degree && degree <= qrcodegen_REED_SOLOMON_DEGREE_MAX); in reedSolomonComputeDivisor()
386 assert(1 <= degree && degree <= qrcodegen_REED_SOLOMON_DEGREE_MAX); in reedSolomonComputeRemainder()
498 assert(bits >> 18 == 0); in drawWhiteFunctionModules()
518 assert(0 <= (int)mask && (int)mask <= 7); in drawFormatBits()
525 assert(bits >> 15 == 0); in drawFormatBits()
599 assert(i == dataLen * 8); in drawCodewords()
609 assert(0 <= (int)mask && (int)mask <= 7); // Disallows qrcodegen_Mask_AUTO in applyMask()
625 default: assert(false); return; in applyMask()
720 assert(n <= qrsize * 3); in finderPenaltyCountPatterns()
753 assert(qrcode != NULL); in qrcodegen_getSize()
755 assert((qrcodegen_VERSION_MIN * 4 + 17) <= result in qrcodegen_getSize()
763 assert(qrcode != NULL); in qrcodegen_getModule()
772 assert(21 <= qrsize && qrsize <= 177 && 0 <= x && x < qrsize && 0 <= y && y < qrsize); in getModule()
781 assert(21 <= qrsize && qrsize <= 177 && 0 <= x && x < qrsize && 0 <= y && y < qrsize); in setModule()
811 assert(text != NULL); in qrcodegen_isAlphanumeric()
822 assert(text != NULL); in qrcodegen_isNumeric()
836 assert(0 <= temp && temp <= INT16_MAX); in qrcodegen_calcSegmentBufferSize()
865 assert(false); in calcSegmentBitLength()
868 assert(result >= 0); in calcSegmentBitLength()
877 assert(data != NULL || len == 0); in qrcodegen_makeBytes()
881 assert(result.bitLength != -1); in qrcodegen_makeBytes()
892 assert(digits != NULL); in qrcodegen_makeNumeric()
897 assert(bitLen != -1); in qrcodegen_makeNumeric()
907 assert('0' <= c && c <= '9'); in qrcodegen_makeNumeric()
918 assert(result.bitLength == bitLen); in qrcodegen_makeNumeric()
926 assert(text != NULL); in qrcodegen_makeAlphanumeric()
931 assert(bitLen != -1); in qrcodegen_makeAlphanumeric()
941 assert(temp != NULL); in qrcodegen_makeAlphanumeric()
952 assert(result.bitLength == bitLen); in qrcodegen_makeAlphanumeric()
965 assert(false); in qrcodegen_makeEci()
979 assert(false); in qrcodegen_makeEci()
989 assert(segs != NULL || len == 0); in getTotalBits()
994 assert(0 <= numChars && numChars <= INT16_MAX); in getTotalBits()
995 assert(0 <= bitLength && bitLength <= INT16_MAX); in getTotalBits()
997 assert(0 <= ccbits && ccbits <= 16); in getTotalBits()
1004 assert(0 <= result && result <= INT16_MAX); in getTotalBits()
1012 assert(qrcodegen_VERSION_MIN <= version && version <= qrcodegen_VERSION_MAX); in numCharCountBits()
1020 default: assert(false); return -1; // Dummy value in numCharCountBits()