Neos\Flow\ResourceManagement\Streams\StreamWrapperInterface::seek PHP Метод

seek() публичный Метод

This method is called in response to fseek(). The read/write position of the stream should be updated according to the offset and whence . $whence can one of: 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.
public seek ( integer $offset, integer $whence = SEEK_SET ) : boolean
$offset integer The stream offset to seek to.
$whence integer
Результат boolean TRUE on success or FALSE on failure.
    public function seek($offset, $whence = SEEK_SET);

Usage Example

 /**
  * Seeks to specific location in a stream.
  *
  * This method is called in response to fseek().
  *
  * The read/write position of the stream should be updated according to the
  * offset and whence .
  *
  * $whence can one of:
  *  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.
  *
  * @param integer $offset The stream offset to seek to.
  * @param integer $whence
  * @return boolean TRUE on success or FALSE on failure.
  */
 public function stream_seek($offset, $whence = SEEK_SET)
 {
     return $this->streamWrapper->seek($offset, $whence);
 }