EventBuffer::drain

(PECL event >= 1.2.6-beta)

EventBuffer::drainRemoves specified number of bytes from the front of the buffer without copying it anywhere

说明

public EventBuffer::drain ( int $len ) : bool

Behaves as EventBuffer::read() , except that it does not copy the data: it just removes it from the front of the buffer.

参数

len

The number of bytes to remove from the buffer.

返回值

Returns TRUE on success. Otherwise FALSE.

参见

相关文章
php 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 cubrid 过时的别名和函数 read data from glo and send it to std outputphp 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 firebird/interbase 函数 get len bytes data from open blobphp firebird/interbase 函数 roll back a transaction without closing itphp harudoc load the font with the specified index from ttc filephp sam 函数 read a message from a queue without removing it from the queuephp sam 函数 read one or more messages from a queue without removing it from the queuephp solrdismaxquery removes a field from the user fields parameter uf
关注编程学问公众号