array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'swoole-buffer.write.php', 1 => 'Swoole\\Buffer::write', 2 => 'Write data to the memory buffer. The memory allocated for the buffer will not be changed.', ), 'up' => array ( 0 => 'class.swoole-buffer.php', 1 => 'Swoole\\Buffer', ), 'prev' => array ( 0 => 'swoole-buffer.tostring.php', 1 => 'Swoole\\Buffer::__toString', ), 'next' => array ( 0 => 'class.swoole-channel.php', 1 => 'Swoole\\Channel', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/swoole/buffer/write.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Swoole\Buffer::write

(PECL swoole >= 1.9.0)

Swoole\Buffer::writeWrite data to the memory buffer. The memory allocated for the buffer will not be changed.

说明

public Swoole\Buffer::write(int $offset, string $data): void

参数

offset

The offset.

data

The data to write to the memory buffer.

返回值