src/Binary/StreamReader.php
public function readByteStream(Stream $stream)
    {
        $length = $this->readVarint($stream);
        $value  = $stream->readStream($length);

        return $value;
    }
public function readByteStream(Stream $stream)
    {
        $length = $this->readVarint($stream);
        $value  = $stream->readStream($length);

        return $value;
    }
public function readByteStream ( Stream $ stream ) { $ length = $ this -> readVarint ( $ stream ) ; $ value = $ stream -> readStream ( $ length ) ; return $ value ; }
Decode a stream of bytes.

@param \Protobuf\Stream $stream

@return \Protobuf\Stream
Decode a stream of bytes .