graphenebase/types.py
def varint(n):
    """ Varint encoding
    """
    data = b""
    while n >= 0x80:
        data += bytes([(n & 0x7F) | 0x80])
        n >>= 7
    data += bytes([n])
    return data
def varint(n):
    """ Varint encoding
    """
    data = b""
    while n >= 0x80:
        data += bytes([(n & 0x7F) | 0x80])
        n >>= 7
    data += bytes([n])
    return data
def varint ( n ) : data = b"" while n >= 0x80 : data += bytes ( [ ( n & 0x7F ) | 0x80 ] ) n >>= 7 data += bytes ( [ n ] ) return data
Varint encoding
Varint encoding