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::__destructSwoole\Buffer::read>
^Swoole\BufferLast updated: Mon, 26 Oct 2026

Swoole\Buffer::expand

(PECL swoole >= 1.9.0)

Swoole\Buffer::expand — Expand the size of memory buffer.

Description

public function Swoole\Buffer::expand(int $size): int

Parameters

size

The new size of the memory buffer.

Return Values

The new size of the memory buffer.


<Swoole\Buffer::__destructSwoole\Buffer::read>
^Swoole\BufferLast updated: Mon, 26 Oct 2026