You are here

public function S3fsStreamWrapper::stream_seek in S3 File System 7

Same name and namespace in other branches
  1. 7.2 S3fsStreamWrapper.inc \S3fsStreamWrapper::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 StreamWrapperInterface::stream_seek

See also

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

File

./S3fsStreamWrapper.inc, line 663
Drupal stream wrapper implementation for S3 File System.

Class

S3fsStreamWrapper
The stream wrapper class.

Code

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