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\Atomic::subSwoole\Buffer::append>
^SwooleLast updated: Mon, 26 Oct 2026

The Swoole\Buffer class

(PECL swoole >= 1.9.0)

Introduction

Class synopsis

class Swoole\Buffer {
/* Methods */
public function append(string $data): int
public function clear(): void
public function __destruct(): void
public function expand(int $size): int
public function read(int $offset, int $length): string
public function recycle(): void
public function substr(int $offset, int $length = ?, bool $remove = ?): string
public function __toString(): string
public function write(int $offset, string $data): void
}

Table of Contents


<Swoole\Atomic::subSwoole\Buffer::append>
^SwooleLast updated: Mon, 26 Oct 2026