private function fillBuffer($length)
    {
        $fill = intval(max([$length, 8192]));
        while ($this->buffer->getSize() < $length) {
            $read = $this->stream->read($fill);
            if ($read === false || $read === '') {
                break;
            }
            $this->buffer->write(preg_replace($this->pattern, $this->replacement, $read));
        }
    }
private function fillBuffer($length)
    {
        $fill = intval(max([$length, 8192]));
        while ($this->buffer->getSize() < $length) {
            $read = $this->stream->read($fill);
            if ($read === false || $read === '') {
                break;
            }
            $this->buffer->write(preg_replace($this->pattern, $this->replacement, $read));
        }
    }
private function fillBuffer ( $ length ) { $ fill = intval ( max ( [ $ length , 8192 ] ) ) ; while ( $ this -> buffer -> getSize ( ) < $ length ) { $ read = $ this -> stream -> read ( $ fill ) ; if ( $ read === false || $ read === '' ) { break ; } $ this -> buffer -> write ( preg_replace ( $ this -> pattern , $ this -> replacement , $ read ) ) ; } }
Fills the BufferStream with at least 8192 characters of input for future
read operations.

@param int $length
Fills the BufferStream with at least 8192 characters of input for future read operations .