8 # include <vcl_msvc_warnings.h> 24 std::streamsize
xsputn (
const char* text, std::streamsize n)
override;
40 std::ptrdiff_t n = pptr () - pbase ();
46 int n = static_cast<int>(pptr () - pbase ());
virtual std::streamsize putchunk(char const *buf, std::streamsize n)
The filter function.
virtual ~vul_redirector()
Destroy redirector, restore stream to original.
int overflow(int ch) override
Contains class for simplified redirection of iostreams.
vul_redirector_streambuf(vul_redirector_data *p_)
vul_redirector_streambuf * buf
int sync_passthru()
Sync original stream.
std::streamsize xsputn(const char *text, std::streamsize n) override
vul_redirector(std::ostream &s)
Attach redirector to std::ostream s, so that all future output to s goes through this->putchunk.
std::streambuf * old_cerrbuf
Simplified redirection of iostreams.
std::streamsize put_passthru(char const *buf, std::streamsize n)
Put characters to original stream.