EventBuffer::readFrom

(PECL event >= 1.7.0)

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

说明

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

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

参数

fd

Socket resource, stream, or numeric file descriptor.

howmuch

Maxmimum number of bytes to read.

返回值

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

参见

相关文章
php eventbuffer append data to the end of an event bufferphp eventbuffer move all data from a buffer provided to the current instance of eventbufferphp eventbuffer moves the specified number of bytes from a source buffer to the end of the current bufferphp eventbuffer copies out specified number of bytes from the front of the bufferphp eventbuffer removes specified number of bytes from the front of the buffer without copying it anywherephp eventbuffer moves all data from source buffer to the front of current bufferphp eventbuffer read data from an evbuffer and drain the bytes readphp eventbuffer read data from a file onto the end of the bufferphp eventbuffer write contents of the buffer to a file or socketphp eventbufferevent read buffer s dataphp cubrid 过时的别名和函数 read data from a glo instance and save it in a filephp cubrid 函数 read from blob/clob dataphp mailparse 函数 streams data from source file pointer apply encoding and write to destfpphp mailparse 函数 scans the data from fp and extract each embedded uuencoded filephp paradox 函数 sets the file where blobs are read fromphp gearmantask read work or result data into a buffer for a taskphp splfileobject read from filephp swoole buffer append the string or binary data at the end of the memory buffer and return the new size of memory allocated.php swoole buffer read data from the memory buffer based on offset and length.php swoole buffer read data from the memory buffer based on offset and length. or remove data from the memory buffer.
关注编程学问公众号