src/Binary/StreamWriter.php
public function writeString(Stream $stream, $value)
    {
        $this->writeVarint($stream, mb_strlen($value, '8bit'));
        $this->writeBytes($stream, $value);
    }
public function writeString(Stream $stream, $value)
    {
        $this->writeVarint($stream, mb_strlen($value, '8bit'));
        $this->writeBytes($stream, $value);
    }
public function writeString ( Stream $ stream , $ value ) { $ this -> writeVarint ( $ stream , mb_strlen ( $ value , '8bit' ) ) ; $ this -> writeBytes ( $ stream , $ value ) ; }
Encode a string.

@param \Protobuf\Stream $stream
@param string           $value
Encode a string .