def varintdecode(data):  
shift = <NUM_LIT:0><EOL>result = <NUM_LIT:0><EOL>for b in bytes(data):<EOL><INDENT>result |= (b & <NUM_LIT>) << shift<EOL>if not (b & <NUM_LIT>):<EOL><INDENT>break<EOL><DEDENT>shift += <NUM_LIT:7><EOL><DEDENT>return result<EOL>
Varint decoding