function SessionStreamWrapper::stream_tell

Same name and namespace in other branches
  1. 3.x modules/stream_wrapper_example/src/StreamWrapper/SessionStreamWrapper.php \Drupal\stream_wrapper_example\StreamWrapper\SessionStreamWrapper::stream_tell()

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

modules/stream_wrapper_example/src/StreamWrapper/SessionStreamWrapper.php, line 558

Class

SessionStreamWrapper
Example stream wrapper class to handle session:// streams.

Namespace

Drupal\stream_wrapper_example\StreamWrapper

Code

public function stream_tell() {
  // @codingStandardsIgnoreEnd
  return $this->streamPointer;
}