function SessionStreamWrapper::stream_seek
Support for fseek().
Parameters
int $offset: The byte offset to got to.
int $whence: SEEK_SET, SEEK_CUR, or SEEK_END.
Return value
bool TRUE on success.
Overrides PhpStreamWrapperInterface::stream_seek
See also
http://php.net/manual/en/streamwrapper.stream-seek.php
File
- 
              modules/
stream_wrapper_example/ src/ StreamWrapper/ SessionStreamWrapper.php, line 516  
Class
- SessionStreamWrapper
 - Example stream wrapper class to handle session:// streams.
 
Namespace
Drupal\stream_wrapper_example\StreamWrapperCode
public function stream_seek($offset, $whence = SEEK_SET) {
  // @codingStandardsIgnoreEnd
  if (strlen($this->sessionContent) >= $offset) {
    $this->streamPointer = $offset;
    return TRUE;
  }
  return FALSE;
}