EventBuffer::readLine
(PECL event >= 1.2.6-beta)
EventBuffer::readLine — Extracts a line from the front of the buffer
Descripción
public
string
EventBuffer::readLine
(
int
$eol_style
)
Extracts a line from the front of the buffer and returns it in a newly
allocated string. If there is not a whole line to read, the function
returns NULL. The line terminator is not included in the copied string.
Parámetros
-
eol_style -
One of EventBuffer:EOL_* constants .
Valores devueltos
On success returns the line read from the buffer, otherwise NULL.
Ver también
- EventBuffer::copyout() - Copia un número específico de bytes del principio del buffer
- EventBuffer::drain() - Elimina un número específico de bytes del principio del buffer sin copiarlo a ningún lugar
- EventBuffer::pullup() - Linearizes data within buffer and returns it's contents as a string
- EventBuffer::read() - Read data from an evbuffer and drain the bytes read
- EventBuffer::appendFrom() - Mueve el número de bytes especificados desde un buffer fuente, al final del buffer actual