You are here

public function RelativeStream::getSize in Zircon Profile 8

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

Get the size of the stream if known.

Return value

int|null Returns the size in bytes if known, or null if unknown.

Overrides StreamInterface::getSize

File

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

Class

RelativeStream
Class RelativeStream

Namespace

Zend\Diactoros

Code

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