The OutputBuffer class tries to present a NUL-terminated string API to consumers. But several of them would prefer a StringView. In particular the Microsoft demangler, juggles between NUL-terminated and StringView, which is confusing.
This adds a StringView conversion, and adjusts the Demanglers that can benefit from that.
(For information, this is part of a series of demangler cleanups I have).
can this change be made independent of the rest of the patch? If so, it'd be good to separate it out.