basic_streambuf::setbuf

To set a buffer for stream input and output sequences.

virtual basic_streambuf<char_type, traits> *setbuf (char_type* s, streamsize n);

Remarks

The function setbuf() is overridden in basic_stringbuf and basic_filebuf classes.

Returns the this pointer.