php8.5
Home/ Manual/ swoole / buffer/ Swoole\Buffer::write

Swoole\Buffer::write

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Write data to the memory buffer. The memory allocated for the buffer will not be changed.

Description

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

Parameters

offset

The offset.

data

The data to write to the memory buffer.

Return Values

Source: reference/swoole/swoole/buffer/write.xml · from the official PHP manual (php/doc-en)