basic_streambuf::setp

void setp(E *pbeg, E *pend);
void setp(E *pbeg, E *pnext, E *pend);

The member function stores pbeg in the beginning pointer, pnext in the next pointer, and pend in the end pointer for the output buffer.