src/Binary/SizeCalculator.php
public function computeZigzag32Size($value)
    {
        $varint = ($value << 1) ^ ($value >> 32 - 1);
        $size   = $this->computeVarintSize($varint);

        return $size;
    }
public function computeZigzag32Size($value)
    {
        $varint = ($value << 1) ^ ($value >> 32 - 1);
        $size   = $this->computeVarintSize($varint);

        return $size;
    }
public function computeZigzag32Size ( $ value ) { $ varint = ( $ value << 1 ) ^ ( $ value >> 32 - 1 ) ; $ size = $ this -> computeVarintSize ( $ varint ) ; return $ size ; }
Compute the number of bytes that would be needed to encode a zigzag 32.

@param integer $value

@return integer
Compute the number of bytes that would be needed to encode a zigzag 32 .