mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-11 23:51:07 +00:00
finished handle_incoming
This commit is contained in:
@ -11,10 +11,9 @@ def encode_uvarint(number):
|
||||
break
|
||||
return buf
|
||||
|
||||
def decode_uvarint(buff):
|
||||
def decode_uvarint(buff, index):
|
||||
shift = 0
|
||||
result = 0
|
||||
index = 0
|
||||
while True:
|
||||
i = buff[index]
|
||||
result |= (i & 0x7f) << shift
|
||||
|
||||
Reference in New Issue
Block a user