Source: /cirosantilli/bitcoin-varint

= Bitcoin varint
{c}

https://en.bitcoin.it/wiki/Protocol_documentation\#Variable_length_integer

Implementations:
* <Python>: https://github.com/alecalve/python-bitcoin-blockchain-parser/blob/c06f420995b345c9a193c8be6e0916eb70335863/blockchain_parser/utils.py\#L41[]. Sample usage to extract 3 values from a `bytes` object:
  ``
  file, off = decode_varint(value)
  blk_off, off = decode_varint(value[off:])
  tx_off, off = decode_varint(value[off:])
  ``