You are here

public function S3fsStream::stream_seek in S3 File System 8.2

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. Otherwise, FALSE.

Overrides PhpStreamWrapperInterface::stream_seek

See also

http://php.net/manual/en/streamwrapper.stream-seek.php

File

src/StreamWrapper/S3fsStream.php, line 654

Class

S3fsStream
Defines a Drupal s3fs (s3fs://) stream wrapper class.

Namespace

Drupal\s3fs\StreamWrapper

Code

public function stream_seek($offset, $whence = SEEK_SET) {
  $this
    ->_debug("stream_seek({$offset}, {$whence}) called.");
  return $this->body
    ->seek($offset, $whence);
}