public function CachingStream::getSize in Lockr 7.3
Get the size of the stream if known.
Return value
int|null Returns the size in bytes if known, or null if unknown.
Overrides StreamDecoratorTrait::getSize
File
- vendor/
guzzlehttp/ psr7/ src/ CachingStream.php, line 34
Class
- CachingStream
- Stream decorator that can cache previously read bytes from a sequentially read stream.
Namespace
GuzzleHttp\Psr7Code
public function getSize() {
return max($this->stream
->getSize(), $this->remoteStream
->getSize());
}