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 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 returns underlying input buffer associated with current buffer eventphp imap 函数 mark a message for deletion from current mailboxphp ldap 函数 delete attribute values from current attributesphp ncurses 函数 clear screen from current position to end of linephp newt 函数 replaces the current help line with the one from the stackphp xmlwriter 函数 flush current bufferphp harupage draw a line from the current point to the specified pointphp intlrulebasedbreakiterator get the largest status value from the break rules that determined the current break positionphp spldoublylinkedlist pops a node from the end of the doubly linked list
关注编程学问公众号