To set a buffer for stream input and output sequences.
virtual streambuf* setbuf(char* s, streamsize n);
The function setbuf() is overridden in strstream classes.
The this pointer is returned.