public function LocalStream8b7c:f320:99b9:690f:4595:cd17:293a:c069stream_seek public LocalStream8b7c:f320:99b9:690f:4595:cd17:293a:c069stream_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. 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 PhpStreamWrapperInter8b7c:f320:99b9:690f:4595:cd17:293a:c069stream_seek See also  http://php.net/manual/streamwrapper.stream-seek.php File
 core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 244  Class
 
LocalStream  Defines a Drupal stream wrapper base class for local files.  Namespace Drupal\Core\StreamWrapper Code 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);
}


    
{'path': 'public/docs/drupal~8/core-lib-drupal-core-streamwrapper-localstream.php/function/localstream-stream_seek/8.1.x.html', 'source': 'DevDocs.IO'}