function DummyExternalReadOnlyWrapper::stream_seek
Same name and namespace in other branches
- 10 core/modules/file/tests/file_test/src/StreamWrapper/DummyExternalReadOnlyWrapper.php \Drupal\file_test\StreamWrapper\DummyExternalReadOnlyWrapper::stream_seek()
- 11.x core/modules/file/tests/file_test/src/StreamWrapper/DummyExternalReadOnlyWrapper.php \Drupal\file_test\StreamWrapper\DummyExternalReadOnlyWrapper::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.
Overrides PhpStreamWrapperInterface::stream_seek
File
-
core/
modules/ file/ tests/ file_test/ src/ StreamWrapper/ DummyExternalReadOnlyWrapper.php, line 117
Class
- DummyExternalReadOnlyWrapper
- Helper class for testing the stream wrapper registry.
Namespace
Drupal\file_test\StreamWrapperCode
public function stream_seek($offset, $whence = SEEK_SET) {
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.