def uvarint_size(n):
bts = <NUM_LIT:0> if n != <NUM_LIT:0> else <NUM_LIT:1><EOL>while n:<EOL><INDENT>n >>= <NUM_LIT:7><EOL>bts += <NUM_LIT:1><EOL><DEDENT>return bts<EOL>
Returns size in bytes n would occupy serialized as varint
:param n:
:return: