You are here

public function RelativeStream::tell in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-diactoros/src/RelativeStream.php \Zend\Diactoros\RelativeStream::tell()

Returns the current position of the file read/write pointer

Return value

int Position of the file pointer

Throws

\RuntimeException on error.

Overrides StreamInterface::tell

File

vendor/zendframework/zend-diactoros/src/RelativeStream.php, line 81

Class

RelativeStream
Class RelativeStream

Namespace

Zend\Diactoros

Code

public function tell() {
  return $this->decoratedStream
    ->tell() - $this->offset;
}