You are here

public function S3fsStream::stream_tell in S3 File System 8.2

Support for ftell().

Return value

int The current offset in bytes from the beginning of file.

Overrides PhpStreamWrapperInterface::stream_tell

See also

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

File

src/StreamWrapper/S3fsStream.php, line 722

Class

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

Namespace

Drupal\s3fs\StreamWrapper

Code

public function stream_tell() {
  $this
    ->_debug("stream_tell() called.");
  return $this->body
    ->ftell();
}