bool getbuffer(std::string &buffer) const
Copies the entire contents of the input source into the specified string regardless of the current location of the reading pointer and returns whether or not this was successful.