mongodb\file\StreamWrapper stream_seek()

stream_seek() public method

Seeks to specific location in a stream.

This method is called in response to fseek().

See also \yii\mongodb\file\fseek().

public boolean stream_seek ( $offset, $whence = SEEK_SET )
$offset integer

The stream offset to seek to.

$whence integer

Possible values:

  • SEEK_SET - Set position equal to offset bytes.
  • SEEK_CUR - Set position to current location plus offset.
  • SEEK_END - Set position to end-of-file plus offset.
return boolean

Return true if the position was updated, false otherwise.

doc_Yii
2016-10-30 17:08:33
Comments
Leave a Comment

Please login to continue.