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

说明

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.

参数

buf

Source buffer.

len

返回值

Returns the number of bytes read.

更新日志

版本 说明
1.6.0 Renamed EventBuffer::appendFrom()(the old method name) to EventBuffer::appendFrom().

参见

相关文章
php map creates a new map using values from the current instance and another mapphp 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 prevent calls that modify an event buffer from succeedingphp 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 extracts a line from the front of the bufferphp eventbuffer scans the buffer for an occurrence of an end of linephp expect 函数 waits until the output from a process matches one of the patterns a specified time period has passed or an eof is seenphp frontbase 函数 returns the error number from previous operationphp mysqlnd qc 函数 returns information on the current handler the number of cache entries and cache entries if availablephp ncurses 函数 add string with specified length at current positionphp ncurses 函数 clear screen from current position to end of linephp session 函数 unregister a global variable from the current sessionphp xmlwriter 函数 end current dtdphp harupage draw a line from the current point to the specified point
关注编程学问公众号