Home
last modified time | relevance | path

Searched refs:appendBitsToBuffer (Results 1 – 2 of 2) sorted by relevance

/third_party/qrcodegen/c/
Dqrcodegen.c55 testable void appendBitsToBuffer(unsigned int val, int numBits, uint8_t buffer[], int *bitLen);
185 testable void appendBitsToBuffer(unsigned int val, int numBits, uint8_t buffer[], int *bitLen) { in appendBitsToBuffer() function
235 appendBitsToBuffer((unsigned int)seg->mode, 4, qrcode, &bitLen); in qrcodegen_encodeSegmentsAdvanced()
236appendBitsToBuffer((unsigned int)seg->numChars, numCharCountBits(seg->mode, version), qrcode, &bit… in qrcodegen_encodeSegmentsAdvanced()
239 appendBitsToBuffer((unsigned int)bit, 1, qrcode, &bitLen); in qrcodegen_encodeSegmentsAdvanced()
250 appendBitsToBuffer(0, terminatorBits, qrcode, &bitLen); in qrcodegen_encodeSegmentsAdvanced()
251 appendBitsToBuffer(0, (8 - bitLen % 8) % 8, qrcode, &bitLen); in qrcodegen_encodeSegmentsAdvanced()
256 appendBitsToBuffer(padByte, 8, qrcode, &bitLen); in qrcodegen_encodeSegmentsAdvanced()
911 appendBitsToBuffer(accumData, 10, buf, &result.bitLength); in qrcodegen_makeNumeric()
917 appendBitsToBuffer(accumData, accumCount * 3 + 1, buf, &result.bitLength); in qrcodegen_makeNumeric()
[all …]
Dqrcodegen-test.c48 void appendBitsToBuffer(unsigned int val, int numBits, uint8_t buffer[], int *bitLen);
70 appendBitsToBuffer(0, 0, buf, &bitLen); in testAppendBitsToBuffer()
73 appendBitsToBuffer(1, 1, buf, &bitLen); in testAppendBitsToBuffer()
76 appendBitsToBuffer(0, 1, buf, &bitLen); in testAppendBitsToBuffer()
79 appendBitsToBuffer(5, 3, buf, &bitLen); in testAppendBitsToBuffer()
82 appendBitsToBuffer(6, 3, buf, &bitLen); in testAppendBitsToBuffer()
90 appendBitsToBuffer(16942, 16, buf, &bitLen); in testAppendBitsToBuffer()
93 appendBitsToBuffer(10, 7, buf, &bitLen); in testAppendBitsToBuffer()
96 appendBitsToBuffer(15, 4, buf, &bitLen); in testAppendBitsToBuffer()
99 appendBitsToBuffer(26664, 15, buf, &bitLen); in testAppendBitsToBuffer()