EventBuffer::substr
(PECL event >= 1.6.0)
EventBuffer::substr — Substracts 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.
參見
- EventBuffer::read() - Read data from an evbuffer and drain the bytes read