Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\Buffer::__toStringSwoole\Channel>
^Swoole\BufferLast updated: Mon, 26 Oct 2026

Swoole\Buffer::write

(PECL swoole >= 1.9.0)

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

Description

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

Parameters

offset

The offset.

data

The data to write to the memory buffer.

Return Values


<Swoole\Buffer::__toStringSwoole\Channel>
^Swoole\BufferLast updated: Mon, 26 Oct 2026