Lines Matching refs:buffer

69      * The byte-offset position in the buffer.
76 * The buffer length.
90 * The buffer.
94 protected $buffer;
141 * Returns the byte length of the buffer.
166 * Returns the current buffer.
174 return $this->buffer;
177 $string = \substr($this->buffer, $this->offset);
183 * Gets a byte at a specific position in the buffer.
201 return $this->buffer[$position];
218 // check if needed bytes are available in the current buffer
236 return $this->buffer[$offset];
254 // check if needed bytes are available in the current buffer
271 $bytes = \substr($this->buffer, $offset, $length);
315 * Set the offset position in the current buffer.
331 * Returns the current offset in the current buffer.
351 * Make sure that there is at least one character beyond the current offset in the buffer.
391 * Resets the buffer to a position and re-read the buffer with the given length.
393 * If the $pos parameter is negative the start buffer position will be the $pos'th position from
399 * @param int|null $pos Start position of the new buffer
400 * @param int $length Length of the new buffer. Mustn't be negative
413 $this->buffer = $length > 0 ? \fread($this->stream, $length) : '';
414 $this->bufferLength = \strlen($this->buffer);
421 // increaseLength parameter is $minLength, so cut to have only the required bytes in the buffer
422 $this->buffer = \substr($this->buffer, 0, $length);
423 $this->bufferLength = \strlen($this->buffer);
428 * Ensures bytes in the buffer with a specific length and location in the file.
447 * Forcefully read more data into the buffer.
462 $this->buffer .= \fread($this->stream, $newLength - $this->bufferLength);
463 $this->bufferLength = \strlen($this->buffer);