Function getVarintSize

Returns size in bytes necessary to store an integer

ulong getVarintSize (
  ulong n
);

Example

assert(getVarintSize(4637734) == 4);