EventBuffer::pullup
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
EventBuffer::pullup
Референца за `eventbuffer.pullup.php` со подобрена типографија и навигација.
EventBuffer::pullup
класата Event
EventBuffer::pullup — Linearizes data within buffer and returns it's contents as a string
= NULL
"Linearizes" the first
size
bytes of the buffer, copying or moving them as needed to ensure that they are all contiguous and occupying the same chunk of memory. If size is negative, the function linearizes the entire buffer.
Повикување EventBuffer::pullup() with a large size can be quite slow, since it potentially needs to copy the entire buffer's contents.
Параметри
-
size -
The number of bytes required to be contiguous within the buffer.
Вратени вредности
Враќа
size
is greater than the number of bytes in the buffer, the function returns
null. Инаку,
EventBuffer::pullup()
returns string.
Види Исто така
- EventBuffer::copyout() - Копира наведени бајти од предниот дел на баферот
- EventBuffer::drain() - Отстранува наведени бајти од предниот дел на баферот без да ги копира никаде
- EventBuffer::read() - Чита податоци од evbuffer и ги испушта прочитаните бајти
- EventBuffer::readLine() - Извлекува линија од предниот дел на баферот
- EventBuffer::appendFrom() - Ги поместува наведените бајти од изворниот бафер до крајот на тековниот бафер