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

Method put

qrcode/util.py:482–484  ·  view source on GitHub ↗
(self, num, length)

Source from the content-addressed store, hash-verified

480 return ((self.buffer[buf_index] >> (7 - index % 8)) & 1) == 1
481
482 def put(self, num, length):
483 for i in range(length):
484 self.put_bit(((num >> (length - i - 1)) & 1) == 1)
485
486 def __len__(self):
487 return self.length

Callers 3

create_dataFunction · 0.95
best_fitMethod · 0.95
writeMethod · 0.80

Calls 1

put_bitMethod · 0.95

Tested by

no test coverage detected