public function writeZigzag(Stream $stream, $value, $base = 32)
    {
        if ($base == 32) {
            $this->writeZigzag32($stream, $value);

            return;
        }

        $this->writeZigzag64($stream, $value);
    }