Bitcoin Varint lib

Varint lib used in Bitcoin and Bitcoin-like p2p message protocol.

See https://developer.bitcoin.org/reference/transactions.html#compactsize-unsigned-integers