PHP Interface Kraken\Stream\StreamSeekerInterface

Inheritance: extends Kraken\Event\EventEmitterInterface, extends Kraken\Stream\StreamBaseInterface
Datei anzeigen Open project: kraken-php/framework

Public Methods

Method Description
isSeekable ( ) : boolean Check if stream is seekable.
rewind ( ) Move the file pointer to the beginning of the stream.
seek ( integer $offset, integer $whence = SEEK_SET ) Move the file pointer to a new position.
tell ( ) : integer Get the position of the file pointer.

Method Details

isSeekable() public method

Check if stream is seekable.
public isSeekable ( ) : boolean
return boolean

rewind() public method

Move the file pointer to the beginning of the stream.
public rewind ( )

seek() public method

The new position, measured in bytes from the beginning of the file, is obtained by adding $offset to the position specified by $whence.
public seek ( integer $offset, integer $whence = SEEK_SET )
$offset integer
$whence integer

tell() public method

Get the position of the file pointer.
public tell ( ) : integer
return integer