basic_streambuf::xsputn

virtual streamsize xsputn(const E *s, streamsize n);

The protected virtual member function inserts up to n elements into the output stream, as if by repeated calls to sputc, from the array beginning at s. It returns the number of elements actually inserted.