EventBuffer::copyout
(PECL event >= 1.2.6-beta)
EventBuffer::copyout — Copies out specified number of bytes from the front of the buffer
Description
public
function EventBuffer::copyout(
string &$data
,
int $max_bytes
):
int
Parameters
-
data
-
Output string.
-
max_bytes
-
The number of bytes to copy.
Return Values
Returns the number of bytes copied, or
-1
on failure.