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 set creates a new set using values from the current instance and another setphp 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 eventbuffer write contents of the buffer to a file or socketphp mcve 函数 delete specified transaction from mcve conn structurephp ncurses 函数 clear screen from current position to end of linephp sodium 函数 generate a deterministic sequence of bytes from a seedphp tidy 函数 returns the number of tidy configuration errors encountered for specified documentphp tidy 函数 returns the number of tidy errors encountered for specified documentphp harupage concatenate current transformation matrix of the page and the specified matrixphp harupage draw a line from the current point to the specified point
关注编程学问公众号