Returns a pointer to the string written so far, and puts the length of the string into len. The string is not null-terminated. The string is not copied by GetString; it may be moved when more data is written, and it will be destroyed when the object is destroyed.