113 while ( !$leave && !$this->mSource->atEnd() &&
114 strlen( $this->mBuffer ) < $count
116 $read = $this->mSource->readChunk();
118 if ( !strlen( $read ) ) {
122 $this->mBuffer .= $read;
125 if ( strlen( $this->mBuffer ) ) {
126 $return = substr( $this->mBuffer, 0, $count );
127 $this->mBuffer = substr( $this->mBuffer, $count );
130 $this->mPosition += strlen( $return );