src/Binary/StreamWriter.php
public function writeBytes(Stream $stream, $bytes, $length = null)
    {
        if ($length === null) {
            $length = mb_strlen($bytes, '8bit');
        }

        $stream->write($bytes, $length);
    }
public function writeBytes(Stream $stream, $bytes, $length = null)
    {
        if ($length === null) {
            $length = mb_strlen($bytes, '8bit');
        }

        $stream->write($bytes, $length);
    }
public function writeBytes ( Stream $ stream , $ bytes , $ length = null ) { if ( $ length === null ) { $ length = mb_strlen ( $ bytes , '8bit' ) ; } $ stream -> write ( $ bytes , $ length ) ; }
Store the given bytes in the stream.

@param \Protobuf\Stream $stream
@param string           $bytes
@param int              $length
Store the given bytes in the stream .