Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/StreamWrapper/LocalStream.php \Drupal\Core\StreamWrapper\LocalStream::stream_tell()
  2. 9 core/lib/Drupal/Core/StreamWrapper/LocalStream.php \Drupal\Core\StreamWrapper\LocalStream::stream_tell()

Retrieve the current position of a stream.

This method is called in response to fseek() to determine the current position.

Return value

int Should return the current position of the stream.

Overrides PhpStreamWrapperInterface::stream_tell

See also

PhpStreamWrapperInterface::stream_tell()

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

File

core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 216

Class

LocalStream
Defines a Drupal stream wrapper base class for local files.

Namespace

Drupal\Core\StreamWrapper

Code

public function stream_tell() {
  return ftell($this->handle);
}