MCPcopy Index your code
hub / github.com/python/cpython / decode_varint_unsigned

Function decode_varint_unsigned

Tools/unicode/dawg.py:411–420  ·  view source on GitHub ↗
(b, index=0)

Source from the content-addressed store, hash-verified

409 assert 0, "implement me!"
410
411def decode_varint_unsigned(b, index=0):
412 res = 0
413 shift = 0
414 while True:
415 byte = b[index]
416 res = res | ((byte & 0b1111111) << shift)
417 index += 1
418 shift += 7
419 if not (byte & 0b10000000):
420 return res, index
421
422def decode_node(packed, node):
423 x, node = decode_varint_unsigned(packed, node)

Callers 2

decode_nodeFunction · 0.85
decode_edgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…