array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'eventbuffer.readfrom.php', 1 => 'EventBuffer::readFrom', 2 => 'Read data from a file onto the end of the buffer', ), 'up' => array ( 0 => 'class.eventbuffer.php', 1 => 'EventBuffer', ), 'prev' => array ( 0 => 'eventbuffer.read.php', 1 => 'EventBuffer::read', ), 'next' => array ( 0 => 'eventbuffer.readline.php', 1 => 'EventBuffer::readLine', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventbuffer/readfrom.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

EventBuffer::readFrom

(PECL event >= 1.7.0)

EventBuffer::readFromRead data from a file onto the end of the buffer

Beschreibung

public EventBuffer::read( mixed $fd , int $howmuch ): int

Read data from the file specified by fd onto the end of the buffer.

Parameter-Liste

fd

Socket resource, stream, or numeric file descriptor.

howmuch

Maxmimum number of bytes to read.

Rückgabewerte

Returns the number of bytes read, or false on failure.

Siehe auch