array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'eventbuffer.addbuffer.php', 1 => 'EventBuffer::addBuffer', 2 => 'Move all data from a buffer provided to the current instance of EventBuffer', ), 'up' => array ( 0 => 'class.eventbuffer.php', 1 => 'EventBuffer', ), 'prev' => array ( 0 => 'eventbuffer.add.php', 1 => 'EventBuffer::add', ), 'next' => array ( 0 => 'eventbuffer.appendfrom.php', 1 => 'EventBuffer::appendFrom', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventbuffer/addbuffer.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

EventBuffer::addBuffer

(PECL event >= 1.2.6-beta)

EventBuffer::addBufferMove all data from a buffer provided to the current instance of EventBuffer

说明

public EventBuffer::addBuffer( EventBuffer $buf ): bool

Move all data from the buffer provided in buf parameter to the end of current EventBuffer. This is a destructive add. The data from one buffer moves into the other buffer. However, no unnecessary memory copies occur.

参数

buf

The source EventBuffer object.

返回值

成功时返回 true, 或者在失败时返回 false

参见