EventBuffer::pullup
(PECL event >= 1.2.6-beta)
EventBuffer::pullup — Linearizes data within buffer
and returns its contents as a string
Description
public
function EventBuffer::pullup(
int $size
):
string
Warning
Calling
EventBuffer::pullup()
with a large size can be quite slow, since it potentially needs to copy
the entire buffer's contents.
Parameters
-
size
-
The number of bytes required to be contiguous within the buffer.
Return Values
If
size
is greater than the number of bytes in the buffer, the function returns
null. Otherwise,
EventBuffer::pullup()
returns string.