EventBuffer::copyout
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
EventBuffer::copyout
Референца за `eventbuffer.copyout.php` со подобрена типографија и навигација.
EventBuffer::copyout
класата Event
EventBuffer::copyout — Copies out specified number of bytes from the front of the buffer
= NULL
Behaves just like
EventBuffer::drain(), but does not drain any data from the buffer. I.e. it copies the first
max_bytes
bytes from the front of the buffer into
data. If there are fewer than
max_bytes
bytes available, the function copies all the bytes there are.
Параметри
-
data -
Output string.
-
max_bytes -
Бројот на бајти за копирање.
Вратени вредности
Returns the number of bytes copied, or
-1
при неуспех.
Види Исто така
- EventBuffer::drain() - Чита податоци од evbuffer и ги испушта прочитаните бајти
- EventBuffer::readLine() - Ги поместува наведените бајти од изворниот бафер до крајот на тековниот бафер