(b, index=0)
| 409 | assert 0, "implement me!" |
| 410 | |
| 411 | def 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 | |
| 422 | def decode_node(packed, node): |
| 423 | x, node = decode_varint_unsigned(packed, node) |
no outgoing calls
no test coverage detected
searching dependent graphs…