MCPcopy Index your code
hub / github.com/lincolnloop/python-qrcode / put_bit

Method put_bit

qrcode/util.py:489–495  ·  view source on GitHub ↗
(self, bit)

Source from the content-addressed store, hash-verified

487 return self.length
488
489 def put_bit(self, bit):
490 buf_index = self.length // 8
491 if len(self.buffer) <= buf_index:
492 self.buffer.append(0)
493 if bit:
494 self.buffer[buf_index] |= 0x80 >> (self.length % 8)
495 self.length += 1
496
497
498def create_bytes(buffer: BitBuffer, rs_blocks: list[RSBlock]):

Callers 2

putMethod · 0.95
create_dataFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected