@staticmethod
def _unzigzag(number: int) ->int:
    """ ZigZag encoding uses LSB for sign storage,
        the value of the signed integer is shifted left by one bit,
        and bitwise negated in case of negative integers.
        """
    if number % 2:
        number = ~number
    number >>= 1
    return number
