You are here

public function FnStream::getSize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/src/FnStream.php \GuzzleHttp\Psr7\FnStream::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/guzzlehttp/psr7/src/FnStream.php, line 90

Class

FnStream
Compose stream implementations based on a hash of functions.

Namespace

GuzzleHttp\Psr7

Code

public function getSize() {
  return call_user_func($this->_fn_getSize);
}