basic_streambuf::pubsetbuf

basic_streambuf *pubsetbuf(E *s, streamsize n);

The member function returns setbuf(s, n).