src/Binary/StreamWriter.php
public function writeZigzag(Stream $stream, $value, $base = 32)
    {
        if ($base == 32) {
            $this->writeZigzag32($stream, $value);

            return;
        }

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

            return;
        }

        $this->writeZigzag64($stream, $value);
    }
public function writeZigzag ( Stream $ stream , $ value , $ base = 32 ) { if ( $ base == 32 ) { $ this -> writeZigzag32 ( $ stream , $ value ) ; return ; } $ this -> writeZigzag64 ( $ stream , $ value ) ; }
Encodes an integer with zigzag.

@param \Protobuf\Stream $stream
@param integer          $value
@param integer          $base
Encodes an integer with zigzag .