EventBuffer::addBuffer

(PECL event >= 1.2.6-beta)

EventBuffer::addBufferMove all data from a buffer provided to the current instance of EventBuffer

说明

public EventBuffer::addBuffer ( EventBuffer $buf ) : bool

Move all data from the buffer provided in buf parameter to the end of current EventBuffer . This is a destructive add. The data from one buffer moves into the other buffer. However, no unnecessary memory copies occur.

参数

buf

The source EventBuffer object.

返回值

Returns TRUE on success. Otherwise FALSE.

参见

相关文章
php map creates a new map using values from the current instance and another mapphp 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 prepend data to the front of the bufferphp eventbuffer moves all data from source buffer to the front of current bufferphp eventbuffer linearizes data within buffer and returns it s contents as a stringphp 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 substracts a portion of the buffer dataphp cubrid 过时的别名和函数 read data from a glo instance and save it in a filephp sqlite 函数 execute a query that does not prefetch and buffer all dataphp splobjectstorage removes all objects except for those contained in another storage from the current storagephp 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.
关注编程学问公众号