EventBuffer
PHP Manual

EventBuffer::setPosition

(PECL event >= 1.2.6-beta)

EventBuffer::setPositionManipulates the position pos within buffer

Description

public bool EventBuffer::setPosition ( EventBufferPosition &$pos , int $value , int $how )

Manipulates the position pos within buffer. If how is EventBuffer::PTR_SET , the pointer is moved to an absolute position position within the buffer. If it is EventBuffer::PTR_ADD , the pointer moves position bytes forward.

Parameters

pos

Destination instance of EventBufferPosition

value

The number of bytes(position).

how

EventBuffer::PTR_ADD or EventBuffer::PTR_SET .

Return Values

Returns TRUE on success. Otherwise FALSE.

See Also


EventBuffer
PHP Manual