You are here

public function StreamInterface::getSize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/psr/http-message/src/StreamInterface.php \Psr\Http\Message\StreamInterface::getSize()

Get the size of the stream if known.

Return value

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

8 methods override StreamInterface::getSize()
AppendStream::getSize in vendor/guzzlehttp/psr7/src/AppendStream.php
Tries to calculate the size by adding the size of each stream.
BufferStream::getSize in vendor/guzzlehttp/psr7/src/BufferStream.php
Get the size of the stream if known.
FnStream::getSize in vendor/guzzlehttp/psr7/src/FnStream.php
Get the size of the stream if known.
PumpStream::getSize in vendor/guzzlehttp/psr7/src/PumpStream.php
Get the size of the stream if known.
RelativeStream::getSize in vendor/zendframework/zend-diactoros/src/RelativeStream.php
Get the size of the stream if known.

... See full list

File

vendor/psr/http-message/src/StreamInterface.php, line 51

Class

StreamInterface
Describes a data stream.

Namespace

Psr\Http\Message

Code

public function getSize();