Lines Matching defs:bufferLength
80 protected $bufferLength;
149 return $this->bufferLength;
152 return $this->bufferLength - $this->offset;
195 if ($position >= $this->bufferLength &&
196 (!$this->increaseLength() || $position >= $this->bufferLength)
219 if (!($position >= $this->position && $position < $this->position + $this->bufferLength)) {
229 if ($offset >= $this->bufferLength &&
230 ((!$this->increaseLength()) || $offset >= $this->bufferLength)
255 if (!($position >= $this->position && $position < $this->position + $this->bufferLength)) {
265 if (($offset + $length) > $this->bufferLength &&
266 ((!$this->increaseLength($length)) || ($offset + $length) > $this->bufferLength)
321 if ($offset > $this->bufferLength || $offset < 0) {
323 \sprintf('Offset (%s) out of range (length: %s)', $offset, $this->bufferLength)
357 while ($this->offset >= $this->bufferLength) {
414 $this->bufferLength = \strlen($this->buffer);
420 if ($this->bufferLength < $length && $this->increaseLength($length - $this->bufferLength)) {
423 $this->bufferLength = \strlen($this->buffer);
437 && $pos < ($this->position + $this->bufferLength)
438 && ($this->position + $this->bufferLength) >= ($pos + $length)
456 if (\feof($this->stream) || $this->getTotalLength() === $this->position + $this->bufferLength) {
460 $newLength = $this->bufferLength + $length;
462 $this->buffer .= \fread($this->stream, $newLength - $this->bufferLength);
463 $this->bufferLength = \strlen($this->buffer);
464 } while (($this->bufferLength !== $newLength) && !\feof($this->stream));