array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'eventbuffer.drain.php', 1 => 'EventBuffer::drain', ), 'up' => array ( 0 => 'class.eventbuffer.php', 1 => 'EventBuffer', ), 'prev' => array ( 0 => 'eventbuffer.copyout.php', 1 => 'EventBuffer::copyout', ), 'next' => array ( 0 => 'eventbuffer.enablelocking.php', 1 => 'EventBuffer::enableLocking', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventbuffer/drain.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL event >= 1.2.6-beta)
EventBuffer::drain — Removes specified number of bytes from the front of the buffer without copying it anywhere
Behaves as EventBuffer::read() , except that it does not copy the data: it just removes it from the front of the buffer.
len
The number of bytes to remove from the buffer.