EventBuffer::substr

(PECL event >= 1.6.0)

EventBuffer::substrSubstracts a portion of the buffer data

说明

public EventBuffer::substr ( int $start [, int $length ] ) : string

Substracts up to length bytes of the buffer data beginning at start position.

参数

start

The start position of data to be substracted.

length

Maximum number of bytes to substract.

返回值

Returns the data substracted as a string on success, or FALSE on failure.

参见

相关文章
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 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 scans the buffer for an occurrence of a stringphp eventbuffer scans the buffer for an occurrence of an end of linephp eventbuffer substracts a portion of the buffer dataphp eventbufferevent create a new ssl buffer event to send its data over another buffer eventphp eventbufferevent creates a new ssl buffer event to send its data over an ssl on a socketphp eventbufferevent adds data to a buffer event s output bufferphp ps 函数 fetches the full buffer containig the generated ps dataphp harudoc write the document data to the output bufferphp 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.php swoole buffer write data to the memory buffer. the memory allocated for the buffer will not be changed.
关注编程学问公众号