php8.5
Home/ Manual/ event / eventbuffer/ EventBuffer::prependBuffer

EventBuffer::prependBuffer

PHP function Edit on GitHub ✎

(PECL event >= 1.2.6-beta)

Moves all data from source buffer to the front of current buffer

Description

EventBuffer::prependBuffer(EventBuffer $buf): bool

Behaves as EventBuffer::addBuffer, except that it moves data to the front of the buffer.

Parameters

buf

Source buffer.

Return Values

Success

See Also

  • EventBuffer::add
  • EventBuffer::addBuffer
  • EventBuffer::prepend

Source: reference/event/eventbuffer/prependbuffer.xml · from the official PHP manual (php/doc-en)