Lines Matching refs:this
31 $this->stream = $stream;
32 $this->setLimit($limit);
33 $this->setOffset($offset);
39 if ($this->stream->eof()) {
44 if ($this->limit == -1) {
48 $tell = $this->stream->tell();
53 return $tell >= $this->offset + $this->limit;
62 if (null === ($length = $this->stream->getSize())) {
64 } elseif ($this->limit == -1) {
65 return $length - $this->offset;
67 return min($this->limit, $length - $this->offset);
81 $offset += $this->offset;
83 if ($this->limit !== -1) {
84 if ($offset > $this->offset + $this->limit) {
85 $offset = $this->offset + $this->limit;
89 return $this->stream->seek($offset);
98 return $this->stream->tell() - $this->offset;
111 $current = $this->stream->tell();
115 if (!$this->stream->seek($offset)) {
117 throw new SeekException($this, $offset);
119 $this->stream->read($offset - $current);
124 $this->offset = $offset;
126 return $this;
139 $this->limit = $limit;
141 return $this;
146 if ($this->limit == -1) {
147 return $this->stream->read($length);
152 $remaining = ($this->offset + $this->limit) - $this->stream->tell();
156 return $this->stream->read(min($remaining, $length));