84 while ( !$leave && !$this->mSource->atEnd() &&
85 strlen( $this->mBuffer ) < $count ) {
86 $read = $this->mSource->readChunk();
88 if ( !strlen( $read ) ) {
92 $this->mBuffer .= $read;
95 if ( strlen( $this->mBuffer ) ) {
96 $return = substr( $this->mBuffer, 0, $count );
97 $this->mBuffer = substr( $this->mBuffer, $count );
100 $this->mPosition += strlen( $return );