다음을 통해 공유


basic_streambuf::xsputn

Protected, virtual function to insert elements into the output stream.

virtual streamsize xsputn( 
   const char_type *_Ptr, 
   streamsize _Count 
);

매개 변수

  • _Ptr
    Pointer to elements to insert.

  • _Count
    Number of elements to insert.

반환 값

The number of elements actually inserted into the stream.

설명

The protected virtual member function inserts up to _Count elements into the output stream, as if by repeated calls to sputc, from the array beginning at _Ptr. The insertion of characters into the output stream stops once all _Count characters have been written, or if calling sputc(_Count) would return traits::eof(). It returns the number of elements actually inserted.

요구 사항

Header: <streambuf>

네임스페이스: std

참고 항목

참조

basic_streambuf 클래스

iostream 프로그래밍

iostreams 규칙