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 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 reserves space in bufferphp 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 eventbufferevent closes file descriptor associated with the current buffer eventphp grapheme 函数 returns part of haystack string from the first occurrence of needle to the end of haystackphp ncurses 函数 clear screen from current position to end of linephp tidy 函数 returns the number of tidy warnings encountered for specified documentphp harupage draw a line from the current point to the specified pointphp solrquery returns the maximum number of characters from a field when using the regex fragmenterphp swfshape draws an arc of radius r centered at the current location from angle startangle to angle endangle measured clockwise from 12 o clockphp swoole server delay execution of the callback function at the end of current eventloop.
关注编程学问公众号