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

Method get

qrcode/util.py:478–480  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

476 return ".".join([str(n) for n in self.buffer])
477
478 def get(self, index):
479 buf_index = math.floor(index / 8)
480 return ((self.buffer[buf_index] >> (7 - index % 8)) & 1) == 1
481
482 def put(self, num, length):
483 for i in range(length):

Callers 5

mainFunction · 0.80
make_imageMethod · 0.80
new_imageMethod · 0.80
__init__Method · 0.80
saveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected