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

EventBuffer::appendFrom

(PECL event >= 1.6.0)

EventBuffer::appendFromMoves the specified number of bytes from a source buffer to the end of the current buffer

Beschreibung

public EventBuffer::appendFrom( EventBuffer $buf , int $len ): int

Moves the specified number of bytes from a source buffer to the end of the current buffer. If there are fewer number of bytes, it moves all the bytes available from the source buffer.

Parameter-Liste

buf

Source buffer.

len

Rückgabewerte

Returns the number of bytes read.

Changelog

Version Beschreibung
PECL event 1.6.0 Renamed EventBuffer::appendFrom()(the old method name) to EventBuffer::appendFrom().

Siehe auch