public function LimitStream::eof in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/psr7/src/LimitStream.php \GuzzleHttp\Psr7\LimitStream::eof()
Returns true if the stream is at the end of the stream.
Return value
bool
Overrides StreamDecoratorTrait::eof
File
- vendor/
guzzlehttp/ psr7/ src/ LimitStream.php, line 37
Class
- LimitStream
- Decorator used to return only a subset of a stream
Namespace
GuzzleHttp\Psr7Code
public function eof() {
// Always return true if the underlying stream is EOF
if ($this->stream
->eof()) {
return true;
}
// No limit and the underlying stream is not at EOF
if ($this->limit == -1) {
return false;
}
return $this->stream
->tell() >= $this->offset + $this->limit;
}