public LocalStream::stream_seek($offset, $whence = SEEK_SET)
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.
int $offset: The byte offset to seek to.
int $whence: Possible values:
Defaults to SEEK_SET.
bool TRUE if the position was updated, FALSE otherwise.
Overrides PhpStreamWrapperInterface::stream_seek
http://php.net/manual/streamwrapper.stream-seek.php
public function stream_seek($offset, $whence = SEEK_SET) { // fseek returns 0 on success and -1 on a failure. // stream_seek 1 on success and 0 on a failure. return !fseek($this->handle, $offset, $whence); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!StreamWrapper!LocalStream.php/function/LocalStream::stream_seek/8.1.x