ivar stands for signed variable-sized integer
it's similar to uvar (see encode_uvar), except that in the first byte, the second-major bit Z of the octet (0b0ZYYYYYY), signals whether the number is positive (Z == 0), or negative (Z == 1)
the following table lists the first few bounds of this encoding:
ivar
stands for signed variable-sized integerit's similar to
uvar
(see encode_uvar), except that in the first byte, the second-major bitZ
of the octet (0b0ZYYYYYY), signals whether the number is positive (Z == 0), or negative (Z == 1)the following table lists the first few bounds of this encoding: