function PhpStreamWrapperInterface::stream_seek
Same name in other branches
- 9 core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php \Drupal\Core\StreamWrapper\PhpStreamWrapperInterface::stream_seek()
- 8.9.x core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php \Drupal\Core\StreamWrapper\PhpStreamWrapperInterface::stream_seek()
- 11.x core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php \Drupal\Core\StreamWrapper\PhpStreamWrapperInterface::stream_seek()
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.
Parameters
int $offset: The byte offset to seek to.
int $whence: 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.
Defaults to SEEK_SET.
Return value
bool TRUE if the position was updated, FALSE otherwise.
See also
http://php.net/manual/streamwrapper.stream-seek.php
2 methods override PhpStreamWrapperInterface::stream_seek()
- DummyExternalReadOnlyWrapper::stream_seek in core/
modules/ file/ tests/ file_test/ src/ StreamWrapper/ DummyExternalReadOnlyWrapper.php - Seeks to specific location in a stream.
- LocalStream::stream_seek in core/
lib/ Drupal/ Core/ StreamWrapper/ LocalStream.php - Seeks to specific location in a stream.
File
-
core/
lib/ Drupal/ Core/ StreamWrapper/ PhpStreamWrapperInterface.php, line 374
Class
- PhpStreamWrapperInterface
- Defines a generic PHP stream wrapper interface.
Namespace
Drupal\Core\StreamWrapperCode
public function stream_seek($offset, $whence = SEEK_SET);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.