84 while ( !$leave && !$this->mSource->atEnd() &&
85 strlen( $this->mBuffer ) < $count
87 $read = $this->mSource->readChunk();
89 if ( !strlen( $read ) ) {
93 $this->mBuffer .= $read;
96 if ( strlen( $this->mBuffer ) ) {
97 $return = substr( $this->mBuffer, 0, $count );
98 $this->mBuffer = substr( $this->mBuffer, $count );
101 $this->mPosition += strlen( $return );