public function ReadLimitEntityBody::isConsumed

Check if the stream has been consumed

Return value

bool

Overrides AbstractEntityBodyDecorator::isConsumed

File

drupal/core/vendor/guzzle/http/Guzzle/Http/ReadLimitEntityBody.php, line 44

Class

ReadLimitEntityBody
EntityBody decorator used to return only a subset of an entity body

Namespace

Guzzle\Http

Code

public function isConsumed() {
  return $this->offset + $this->limit - $this->body
    ->ftell() <= 0;
}