src/Binary/StreamReader.php
public function readString(Stream $stream)
    {
        $length = $this->readVarint($stream);
        $string = $stream->read($length);

        return $string;
    }
public function readString(Stream $stream)
    {
        $length = $this->readVarint($stream);
        $string = $stream->read($length);

        return $string;
    }
public function readString ( Stream $ stream ) { $ length = $ this -> readVarint ( $ stream ) ; $ string = $ stream -> read ( $ length ) ; return $ string ; }
Decode a string.

@param \Protobuf\Stream $stream

@return string
Decode a string .