Lines Matching refs:limit
20 private $limit; variable in GuzzleHttp\\Psr7\\LimitStream
24 * @param int $limit Total number of bytes to allow to be read
31 $limit = -1, argument
35 $this->setLimit($limit);
47 if ($this->limit == -1) {
51 return $this->stream->tell() >= $this->offset + $this->limit;
62 } elseif ($this->limit == -1) {
65 return min($this->limit, $length - $this->offset);
85 if ($this->limit !== -1) {
86 if ($offset > $this->offset + $this->limit) {
87 $offset = $this->offset + $this->limit;
132 * @param int $limit Number of bytes to allow to be read from the stream.
135 public function setLimit($limit) argument
137 $this->limit = $limit;
142 if ($this->limit == -1) {
148 $remaining = ($this->offset + $this->limit) - $this->stream->tell();