EventBufferEvent::read
PHP function
Edit on GitHub ✎
(PECL event >= 1.2.6-beta)
Read buffer's data
Description
EventBufferEvent::read(int $size): string
Removes up to size bytes from the input buffer. Returns a string of data read from the input buffer.
Parameters
sizeMaximum number of bytes to read
Return Values
Returns string of data read from the input buffer.
See Also
EventBufferEvent::readBuffer