Home
last modified time | relevance | path

Searched refs:append_bits (Results 1 – 3 of 3) sorted by relevance

/third_party/qrcodegen/rust/src/
Dlib.rs241 bb.append_bits(seg.mode.mode_bits(), 4); in encode_segments_advanced()
242 bb.append_bits(seg.numchars as u32, seg.mode.num_char_count_bits(version)); in encode_segments_advanced()
251 bb.append_bits(0, numzerobits as u8); in encode_segments_advanced()
253 bb.append_bits(0, numzerobits as u8); in encode_segments_advanced()
261 bb.append_bits(padbyte, 8); in encode_segments_advanced()
973 bb.append_bits(u32::from(b), 8); in make_bytes()
991 bb.append_bits(accumdata, 10); in make_numeric()
997 bb.append_bits(accumdata, accumcount * 3 + 1); in make_numeric()
1019 bb.append_bits(accumdata, 11); in make_alphanumeric()
1025 bb.append_bits(accumdata, 6); in make_alphanumeric()
[all …]
/third_party/qrcodegen/python/
Dqrcodegen.py109 bb.append_bits(seg.get_mode().get_mode_bits(), 4)
110 bb.append_bits(seg.get_num_chars(), seg.get_mode().num_char_count_bits(version))
117 bb.append_bits(0, min(4, datacapacitybits - len(bb)))
118 …bb.append_bits(0, -len(bb) % 8) # Note: Python's modulo on negative numbers behaves better than C…
125 bb.append_bits(padbyte, 8)
685 bb.append_bits(b, 8)
698 bb.append_bits(int(digits[i : i + n]), n * 3 + 1)
714 bb.append_bits(temp, 11)
716 bb.append_bits(QrSegment._ALPHANUMERIC_ENCODING_TABLE[text[-1]], 6)
746 bb.append_bits(assignval, 8)
[all …]
/third_party/qrcodegen/rust/examples/
Dqrcodegen-demo.rs131 bb.append_bits(c, 13); in do_segment_demo()