EventBuffer
PHP Manual

EventBuffer::removeBuffer

(PECL event >= 1.2.6-beta)

EventBuffer::removeBufferMoves the specified number of bytes from a source buffer to the end of the current

Description

public bool EventBuffer::removeBuffer ( EventBuffer $buf , int $len )

Moves the specified number of bytes from a source buffer to the end of the current. If there are fewer number of bytes, it moves all the bytes available from the source buffer.

Parameters

buf

Source buffer.

len

Return Values

Returns TRUE on success. Otherwise FALSE.

See Also


EventBuffer
PHP Manual